Skip to content

Releases: edaa-org/pyEDAA.Reports

v0.11.0

23 Jun 22:23
4d09415
Compare
Choose a tag to compare

Release created on: 23.06.2024 - 22:23:46

New Features

  • pytest-junit: Support multiple system-out and system-err tags for the pytest JUnit XML dialect.
  • generic-junit: Support properties on root element testsuites.

Changes

  • Fetch GoogleTest into the lib directory via CMake.
  • Name used XSD schema in case of a validation fault.
  • Bumped dependencies.
  • Fixed typos.

Bug Fixes

  • Fixed Ant/JUnit4 execution and build in Java example project: Upgraded dependency Gradle to v8.8.

Related PRs:

v0.10.0

03 Jun 23:05
ae5bf3d
Compare
Choose a tag to compare

Release created on: 03.06.2024 - 23:05:37

New Features

  • Post-processing for pytest: rewrite __init__ in classnames.
  • Safer parsing of YAML contents and improved error messages.

Changes

  • Bumped dependencies.
  • Code refactoring in _merge.

Bug Fixes

  • Fixed assertionCount vs. passedAssertionCount.

Documentation

  • Added some first documentation paragraphs for unittesting.

v0.9.0

02 Jun 08:29
c00951c
Compare
Choose a tag to compare

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
      • 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:

v0.8.0

06 May 20:04
120296d
Compare
Choose a tag to compare

Release created on: 06.05.2024 - 20:04:26

New Features

  • Added property TestDuration also to Testsuites and TestsuiteSummary.
  • Check setup, test and teardown durations.
  • Aggregate total durations.

Changes

None

Bug Fixes

None

v0.7.2

06 May 05:00
7e776c4
Compare
Choose a tag to compare

Release created on: 06.05.2024 - 05:00:51

New Features

None

Changes

None

Bug Fixes

  • Avoid deleting already deleted items.

v0.7.1

05 May 22:16
e22c457
Compare
Choose a tag to compare

Release created on: 05.05.2024 - 22:16:16

New Features

  • Handle multiple pytest cleanup rules at once.
  • Print verbose and debug messages when running pytest cleanups.

Changes

None

Bug Fixes

None

v0.7.0

05 May 21:24
5d0235d
Compare
Choose a tag to compare

Release created on: 05.05.2024 - 21:24:01

New Features

  • Strip overhead created by pytest from unit test reports.
    • New --pytest parameter for CLI tool.

Changes

  • When converting from TestClass to Testsuite, create one Testsuite per package/module/class level.
  • Renamed TestClass to Testclass.

Bug Fixes

  • Moved readonly property Kind to TestsuiteBase.

v0.6.0

05 May 18:20
11df558
Compare
Choose a tag to compare

Release created on: 05.05.2024 - 18:20:42

New Features

  • Implemented data model for Ant JUnit summary files as an independent data model.
  • Added conversion methods from JUnit data model to generic unit testing data model.
  • Added conversion methods from generic unit testing data model to JUnit data model.
  • Introduced a TestClass layer in the JUnit data model to abstract classname.
  • Added a Kind field to Testsuites (root, logical, namespace, package, module, class).
    This allows a JUnit Testcase and it's TestClass to be decomposed into multiple levels of Testsuites.
    In reverse a fully-qualified classname can be recreated by searching from Testcase upwards until a logical Testsuite is found.

Changes

  • Bumped dependencies.
  • Remove support of nested Testsuites from the JUnit data model.

Bug Fixes

None

Unit Tests

  • Added many new unit tests for the JUnit data model.

v0.5.2

25 Apr 19:55
69002dc
Compare
Choose a tag to compare

Release created on: 25.04.2024 - 19:55:11

New Features

None

Changes

None

Bug Fixes

  • Copy fields from summary to the document when a JUnit XML document is derived from a testsuite summary.d

v0.5.1

25 Apr 19:30
de62679
Compare
Choose a tag to compare

Release created on: 25.04.2024 - 19:30:03

New Features

None

Changes

  • Emit aggregated statistics in testsuites.

Bug Fixes

None