-
Notifications
You must be signed in to change notification settings - Fork 60
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
Extra testcases in Junit xml output with pytest #113
Comments
I've had this happen when using pytest==2.9.1 |
I upgraded to pytest 3.0.3 (was running 3.0.2), but problem persist :( With a simple hack I can remove the empty testcases before I publish the test result. However, it would be neater if flaky could handle this. Or perhaps I need to upgrade some other dependency? |
@Hebbeman can you share your simple hack? I agree flaky should not spam the report with empty test case elements. |
@kalidasya The "hack" simply modifies the JUnitXML file
|
@Hebbeman thanks, I thought you hooked it with pytest and you do this on that report object, but indeed we can do it afterwards as well. |
When running flaky together with pytest using junit xml output:
it appears like each rerun of a flaky test is registered as an extra testcase in the junit xml output with no attributes except time, for example:
<testcase
time="0.0019998550415"></testcase>
Is this working as intended?
The text was updated successfully, but these errors were encountered: