forked from bndtools/bnd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[junit-platform] Report total failure count, not just test failures
This is necessary as Jupiter reports container failures separately from the children if the container fails before the children are executed. Fixes bndtools#4175. Signed-off-by: Fr Jeremy Krieg <[email protected]>
- Loading branch information
Showing
7 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
biz.aQute.tester.test/src/aQute/tester/testclasses/junit/platform/JUnit4ContainerError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package aQute.tester.testclasses.junit.platform; | ||
|
||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
|
||
public class JUnit4ContainerError { | ||
|
||
@BeforeClass | ||
void beforeAll() { | ||
throw new IllegalStateException(); | ||
} | ||
|
||
@Test | ||
void myTest() { | ||
throw new AssertionError(); | ||
} | ||
|
||
@Test | ||
void my2ndTest() { | ||
throw new AssertionError(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...aQute.tester.test/src/aQute/tester/testclasses/junit/platform/JUnit4ContainerFailure.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package aQute.tester.testclasses.junit.platform; | ||
|
||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
|
||
public class JUnit4ContainerFailure { | ||
|
||
@BeforeClass | ||
void beforeAll() { | ||
throw new AssertionError(); | ||
} | ||
|
||
@Test | ||
void myTest() { | ||
throw new AssertionError(); | ||
} | ||
|
||
@Test | ||
void my2ndTest() { | ||
throw new AssertionError(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
biz.aQute.tester.test/src/aQute/tester/testclasses/junit/platform/JUnit5ContainerError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package aQute.tester.testclasses.junit.platform; | ||
|
||
import org.junit.jupiter.api.BeforeAll; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class JUnit5ContainerError { | ||
|
||
@BeforeAll | ||
void beforeAll() { | ||
throw new IllegalStateException(); | ||
} | ||
|
||
@Test | ||
void myTest() { | ||
throw new AssertionError(); | ||
} | ||
|
||
@Test | ||
void my2ndTest() { | ||
throw new AssertionError(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...aQute.tester.test/src/aQute/tester/testclasses/junit/platform/JUnit5ContainerFailure.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package aQute.tester.testclasses.junit.platform; | ||
|
||
import org.junit.jupiter.api.BeforeAll; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class JUnit5ContainerFailure { | ||
|
||
@BeforeAll | ||
void beforeAll() { | ||
throw new AssertionError(); | ||
} | ||
|
||
@Test | ||
void myTest() { | ||
throw new AssertionError(); | ||
} | ||
|
||
@Test | ||
void my2ndTest() { | ||
throw new AssertionError(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters