GeezerVison is showing github.com — Number of completed tests mismatches passed/failed · Issue #319 · dorny/test-reporter
Number of completed tests mismatches passed/failed #319
Labels
bugSomething isn't workingdartPull requests that update Dart code Description
The numbers presented in the test result don't seem to add up:
13 tests were completed in 274s with 12 passed, 0 failed and 0 skipped.
I don't understand how the number of completed tests is formed. But I would assume it to be the sum of passed + failed.
In fact, in the given test suite, there were 12 tests (test(…);) included. So I would have expected "12 tests were completed …".
This is the originating test results file of reporter: "flutter-json":
test-results.json
Activity
dominicmh commented on Apr 11, 2024
ContributorAuthor
More actions
According to the documentation of the TestDoneEvent, the hidden "tests" should be ignored:
The hidden attribute indicates that the test's result should be hidden and not
counted towards the total number of tests run for the suite. This is true for
virtual tests created for loading test suites, setUpAll(), and
tearDownAll(). Only successful tests will be hidden.
This could be easily fixed by removing "tests" with the hidden flag on the TestDoneEvent from the test result.
@jozefizso, would this solution be accepted as a PR? Let me know if you need more background information!
Metadata
Metadata
bugSomething isn't workingdartPull requests that update Dart code Development
No branches or pull requestsIssue actions