MikeSchulze / gdUnit3

A Godot Unit Test Framework. Support for gdScript and c# unit testing
MIT License
312 stars 22 forks source link

GD-235: JUnit XML Reports #235

Closed mzoeller closed 2 years ago

mzoeller commented 2 years ago

Is your feature request related to a problem? Please describe. I use Gitlab CI to automate exporting to various platforms and also run gdUnit3 tests. I check the return code to detect any errors. It's working fine. But it's tedious to look at the logs/report html to find specific failed tests and error logs.

Describe the solution you'd like An option to write JUnit XML reports instead of HTML ones. They are supported by a wide variety of testing frameworks and automation systems including Jenkins and Gitlab CI.

Describe alternatives you've considered Interpreting the HTML reports would be possible.

Additional context Integration in Gitlab CI: https://docs.gitlab.com/ee/ci/unit_test_reports.html#how-it-works

Official JUnit XML docs: https://www.ibm.com/docs/en/developer-for-zos/14.1.0?topic=formats-junit-xml-format

WAT has some example junit xml export code that could help in implementing this feature for gdUnit3. https://github.com/AlexDarigan/WAT/blob/main/addons/WAT/io/junit_xml.gd

MikeSchulze commented 2 years ago

Hi @mzoeller a good suggestion that should definitely be implemented.

It will take some time to start implementing, I am still working hard to finish v2.0.0 with C# test support.