Closed andre15silva closed 3 years ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 1101644940: | -0.1% |
Covered Lines: | 1078 |
Relevant Lines: | 2383 |
Could you give me a case where the
description.isTest()
would givefalse
?
Yes, as far as I understood it is false
when the description
represents a TestSuite
(see http://junit.sourceforge.net/junit3.8.1/javadoc/junit/framework/TestSuite.html). From the javadoc of Description
:
A Description describes a test which is to be run or has been run. Descriptions can be atomic (a single test) or compound (containing children tests).
But now that I think of it, the listener already does that filtering for us, since any of those methods are only called for atomic tests. I'll revert those ifs.
istTest()
.Note that JUnit5 would allow for the test results to be stored immediately as passing, failing, etc, instead of having to do such computation, but the JUnit4 listener doesn't provide this information in
testFinished
, andtestFinished
is run aftertestFailure
not allowing for such computation to be done while running the tests.To be rebased and merged after #113