[
https://issues.apache.org/jira/browse/SUREFIRE-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963490#comment-15963490
]
Mikhail Stepura commented on SUREFIRE-1314:
-------------------------------------------
OK, I've forced that integration test to use {{surefire-junit47}}. but I don't
see any difference.
https://github.com/Mishail/maven-surefire/commits/SUREFIRE-1314
{code}
[DEBUG] test(compact) classpath: test-classes classes junit-4.12.jar
hamcrest-core-1.3.jar
[DEBUG] provider(compact) classpath: surefire-junit47-2.20-SNAPSHOT.jar
common-junit48-2.20-SNAPSHOT.jar common-junit4-2.20-SNAPSHOT.jar
common-junit3-2.20-SNAPSHOT.jar surefire-api-2.20-SNAPSHOT.jar
surefire-logger-api-2.20-SNAPSHOT.jar common-java5-2.20-SNAPSHOT.jar
maven-shared-utils-0.9.jar jsr305-2.0.1.jar surefire-grouper-2.20-SNAPSHOT.jar
...
[INFO] Running jiras.surefire1146.ErrorInBeforeClassTest
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 s <<<
FAILURE! - in jiras.surefire1146.ErrorInBeforeClassTest
[ERROR] jiras.surefire1146.ErrorInBeforeClassTest Time elapsed: 0 s <<<
FAILURE!
java.lang.AssertionError
at
jiras.surefire1146.ErrorInBeforeClassTest.beforeClass(ErrorInBeforeClassTest.java:19)
...
Description.isTest(): false
Description.getChildren: [test(jiras.surefire1146.ErrorInBeforeClassTest)]
{code}
> rerunFailingTestsCount doesn't work for errors in BeforeClass methods
> ---------------------------------------------------------------------
>
> Key: SUREFIRE-1314
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1314
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.x support
> Affects Versions: 2.19.1
> Reporter: Mikhail Stepura
> Assignee: Tibor Digana
>
> We're using {{surefire.rerunFailingTestsCoun}} property for our integration
> tests, and everything working fine when an error/failure happens in a test
> method (i.e. {{@Test}} ), and those test methods are re-executed later, as
> expected.
> But if an error happens in a {{BeforeClass}} class method, then those test
> classes are not re-executed.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)