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

Unable to merge junit logs (first worker output empty file) #786

Closed
pistej opened this issue Aug 25, 2023 · 1 comment · Fixed by #787
Closed

Unable to merge junit logs (first worker output empty file) #786

pistej opened this issue Aug 25, 2023 · 1 comment · Fixed by #787
Labels

Comments

@pistej
Copy link

pistej commented Aug 25, 2023

Q A
ParaTest version 7.2.5
PHPUnit version 10.3.2
PHP version 8.1.22

Summary

Same error as was discussed here #745 but with small example.

Current behavior

It crashed with exception on joining junit logs files in the end of running tests.

If assert is enabled:
PHP Fatal error: Uncaught AssertionError: assert($logFile->isFile() && 0 < (int)$logFile->getSize()) in /var/www/vendor/brianium/paratest/src/JUnit/TestSuite.php:41 Stack trace: #0 /var/www/vendor/brianium/paratest/src/JUnit/TestSuite.php(41): assert() #1 /var/www/vendor/brianium/paratest/src/JUnit/LogMerger.php(29): ParaTest\JUnit\TestSuite::fromFile() #2 /var/www/vendor/brianium/paratest/src/WrapperRunner/WrapperRunner.php(346): ParaTest\JUnit\LogMerger->merge()

if not ex. occurs later:

String could not be parsed as XML ...vendor/brianium/paratest/src/JUnit/TestSuite.php:51

How to reproduce: command, code and error stack trace

Reproducible env/error: https://github.com/pistej/parates-bug

Expected behavior

I expect junit logs to be merged and report.xml created.

@pistej
Copy link
Author

pistej commented Aug 30, 2023

thx 🥇 @Slamdunk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant