Several tests in the test class of TestExecutionExceptionHandlerTest#ATestClass throw exceptions yet I assume the unit tests of Junit pass just fine. Can someone explain what is going on?
Asked
Active
Viewed 41 times
1
-
Could you please provide code samples and tests that are failing for better understanding? – Daniel Vilas-Boas Jan 18 '20 at 00:42
-
The code sample is the inner class ATestCase provided in the link. Why does that class not have failing tests? – Hans Wurst Jan 18 '20 at 07:43
-
Please provide more details e.g. what tests are failing, what are the exceptions being thrown – k.wahome Jan 18 '20 at 10:20
1 Answers
1
This answer explains it. More specifically the last comment by Sam Brannen:
Maven Surefire [...] is not executing your static nested test class because of its default exclude rule.

Hans Wurst
- 376
- 1
- 3
- 12