Project: JDT
Bug 309035 [JUnit] TestCaseElement does not handle ignored status correctly
Reported: 2010-04-13 15:25:02 | Status: resolved fixed

According to Javadoc, ITestElement.getTestResult(boolean) should return ITestElement.Result.IGNORED for ignored/skipped tests. But the current implementation returns a result of OK and only sets the 'ignored' property in TestCaseElement, which is internal API. Optimally, the implementation of TestCaseElement.getTestResult(boolean) should be fixed to return an IGNORED result. Failing that due to backward compatibility concerns, isIgnored() should be added to the interface.

Files changed in fix:
org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/model/TestCaseElement.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/junit/tests/AbstractTestRunListenerTest.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/junit/tests/TestRunSessionSerializationTests4.java