Skip to content

Fixes and features on the JUnit Python conversion script#594

Merged
mvandervoord merged 1 commit intoThrowTheSwitch:masterfrom
LeoSebal:dev/python_JUnit_fix
Nov 13, 2022
Merged

Fixes and features on the JUnit Python conversion script#594
mvandervoord merged 1 commit intoThrowTheSwitch:masterfrom
LeoSebal:dev/python_JUnit_fix

Conversation

@LeoSebal
Copy link

  • Renamed the script unity_to_junit.py as stylize_as_junit.py to match the Ruby file
  • Resolves unity_to_junit.py produces an empty result.txt #590 by making the file name optional in test results. File name falls back to current test name.
  • Rewrote the argument parsing to use argparse
  • Added a --output / -o option, to match the Ruby file
  • Added python3 shebang

* Added python3 shebang
* Renamed the script `unity_to_junit.py` as `stylize_as_junit.py`
  to match the Ruby file
* Fixed a bug on where the script failed if the first entry slot of
  each result line is empty. Now falls back to the result file name
* Rewrote the argument parsing to use argparse
* Added a `--output` / `-o` option, to match the Ruby file
@mvandervoord mvandervoord merged commit 303e6ec into ThrowTheSwitch:master Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unity_to_junit.py produces an empty result.txt

3 participants