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

Generate JUnit xml for failed dependant tests #136

Open
OndraM opened this issue May 10, 2017 · 0 comments
Open

Generate JUnit xml for failed dependant tests #136

OndraM opened this issue May 10, 2017 · 0 comments

Comments

@OndraM
Copy link
Member

OndraM commented May 10, 2017

If test fails because its prerequisite test failed before, it is marked as failed in results.xml, however, its junit xml is not generated at all (obviously because the phpunit process is not even started).

This confuses junit plugins like the one in jenkins, because it has no way how to know about this failed tests.

One possible solution is to generate some "dummy" xml in junit format (and with proper name) for this failed tests, with error message like Testcase "Foo\DependantTest" marked as failed because it was depending on failed "Foo\FailedTest".

The previous xml files should be cleared before Steward starts, so if the file already exists, it probably should not be overriden (or should with warning?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant