[ BUILD # : 201206140001 ]
[ JDK VERSION : 1.7.4 ]
Maven based project, compile on save is disabled.
Junit 4 based test file (@Test), run file with right click "test file".
14 test cases are executed, one fails.
When clicking on the "re run failed" again 14 tests are executed which includes
the failed test and 13 which do not fail.
Additional remark: After turning on the compile on save for test and application code I have to "clean and build" the project in order to get the expected behavior.
Bug is still present in 7.2rc1 / 201206141830
I followed your steps but in NetBeans IDE Dev (Build 20120618-3730c20bc2c7) I get that no tests are executed after invoking Rerun failed. From gsf.testrunner the failed test methods are passed correctly to the implementation in JUnitOutputListenerProvider. Could you please evaluate. Thank
if I take the example project from issue 214334, and Run test on CalculatorTest, the following is executed.
mvn -Dtest=teststorun.CalculatorTest test-compile surefire:test
one test fails, one test passes.
clicking Rerun failed executes this:
mvn -Dtest=teststorun.CalculatorTest#testDivide test-compile surefire:test
and correctly executes the 1 failing test only.
when I modify the IfaceTest to have 1 passing and 2 failing tests, Re-running shows no tests being executed which is bug 214334.
in that sense it's either duplicate of 214334 or workforme resolution. Can you attach a sample project demonstating the problem?
duplicate of issue 214334
*** This bug has been marked as a duplicate of bug 214334 ***