v0.9.0
Release created on: 02.06.2024 - 08:29:02
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
- Specify the format and dialect (e.g. "ant-junit") as prefix with a colon:
- 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.
- Use argument
- Main command
- 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
.
- Currently implemented dialects:
- Postprocessing for
pytest
:- Rewrite
__init__
in class names to proper package names. - Reduce depth of testsuite in testsuite structure.
- Rewrite
- 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)
- Currently implemented dialects:
- Allow setting a title to the merged TestsuiteSummary.
- Parse OSVVMs AlertLogs from YAML file.
- A new data model for
AlertLogGroup
s andDocument
s.
- A new data model for
- 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 notTypeError
. - Specify the encoding when reading or writing files.
Related PRs:
- #33 (@skoehler)
- #34
- #36 (@navidcity)