Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.9.0 #37

Merged
merged 36 commits into from
Jun 2, 2024
Merged

v0.9.0 #37

merged 36 commits into from
Jun 2, 2024

Conversation

Paebbels
Copy link
Member

@Paebbels Paebbels commented May 17, 2024

New Features

  • Reworked command line interface:
    • Main command unittest
      pyedaa-reports unittest
        -v
        --merge=PyTest-JUnit:tests/data/JUnit/pytest.pyTooling/*-UnitTestReportSummary*.xml
        --pytest=pytest.tests.unit;pytest.tests.benchmark;pytest.tests.performance
        --render=tree
        --output=Ant-JUnit:tests/output/merge/UnitTestReportSummary-Merged.xml
      
      • Use argument --name to set a name for the merged testsuite summary.
      • Use argument --merge to specify a unittest report source for merging.
        • Specify the format and dialect (e.g. "ant-junit") as prefix with a colon: --merge=ant-junit:data/*.xml
      • Use argument --pytest to specify pytest specific cleanup and restructuring instructions.
      • Use argument --render to output the result as an ASCII art rendering.
      • Use argument --output to specify the output format, dialect and filename.
  • Added GitHub Action pipeline jobs to create example projects producing example JUnit-like report files in XML format.
  • Added example files for different JUnit-like frameworks with various dialects.
    • Currently implemented dialects: ant-junit, ctest-junit, gtest-junit, pytest-junit.
  • Postprocessing for pytest:
    • Rewrite __init__ in class names to proper package names.
    • Reduce depth of testsuite in testsuite structure.
  • Rendering:
    • Render testsuites and testcases as a tree (if verbose mode is active).
  • Support a dialect and filename for the output after merge operations.
    • Currently implemented dialects: ant-junit (other need a XML writer)
  • Allow setting a title to the merged TestsuiteSummary.
  • Parse OSVVMs AlertLogs from YAML file.
    • A new data model for AlertLogGroups and Documents.
  • Python 3.11+: Added notes to exceptions, especially when a TypeError is raised.

Changes

  • Bumped dependencies.
  • Split JUnit schema files into multiple dialects.
  • Split JUnit classes into multiple dialects.

Bug Fixes

  • Raise a ValueError when a parameter is None, but not TypeError.
  • Specify the encoding when reading or writing files.

Related PRs:

@Paebbels Paebbels self-assigned this May 17, 2024
@Paebbels Paebbels added Unit Testing Unit test summaries FileFormat: XML XML file format Tool: pytest labels May 17, 2024
Paebbels and others added 7 commits May 26, 2024 01:36
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [typing-extensions](https://github.com/python/typing_extensions) to permit the latest version.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](python/typing_extensions@4.11.0...4.12.0)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@Paebbels Paebbels marked this pull request as ready for review June 2, 2024 08:22
@Paebbels Paebbels merged commit c00951c into main Jun 2, 2024
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants