-
Notifications
You must be signed in to change notification settings - Fork 21
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
test report shows incorrect statistics #83
Comments
Are there data-driven tests in the test suite? |
Yes. I have two classes that are |
Each row in a data-driven test counts as an individual test result. |
None of my data-driven tests failed. Although they are named in the "Full Failure List". |
The Full Failure List comes from the serenity-summary-report.html template, which is assigned in the SinglePageHtmlReporter.kt class, which in turn uses the FailuresByFeature.kt class. Put a breakpoint here and see if you can see why it is not giving the results you expect for your tests. |
I found the culprit! The tests that are being incorrectly reported are indeed in a class that is
The test passes, that is: the correct exception is thrown. I even see this in the full report:
However, because the test threw an exception - I guess - it is counted as a failure in the statistics. Note that I also have similar negative tests in a class that is |
My test reports are showing incorrect statistics. Here are the relevant things from my Jenkins log:
The summary report shows the correct values for failing and broken tests, but in the "Full Failure List" it lists 7 tests.
The full report shows all correct information.
The summary report is what gets mailed to management, and they have questions that I have no answers for. :(
The text was updated successfully, but these errors were encountered: