Bug 35590 JUnit window doesn't report errors from junit.extensions.TestSetup [JUnit]
The class junit.extensions.TestSetup is a decorator to set up additional fixture state once before tests are run. I have a TestSuite wrapped into a TestSetup for that purpose. The JUnit window in the Java perspective shows neither errors (exceptions) nor failures (assertions) that happen in my TestSetup.setUp() method. The only thing I get is a comment on the status line: JUnit test run finished: 1.913 seconds (Errors: 0, Failures: 1) Just FYI, my class ActivationsTest creates a TestSuite like this: public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest( new ActivationsTest( "testAddAccount" ) ); suite.addTest( new ActivationsTest( "testAddAccountReserveMobile" ) ); suite.addTest( new ActivationsTest( "testReserveAvailableMobile" ) ); return new CAMTestSetup( suite, "ActivationsTest" ); }//suite()
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart.java
public void rerunTest(String testId, String className, String testName, String launchMode) {
		DebugUITools.saveAndBuildBeforeLaunch();
		if (lastLaunchIsKeptAlive())
			fTestRunnerClient.rerunTest(testId, className, testName);
		else if (fLastLaunch != null) {
			
			ILaunchConfiguration launchConfiguration= fLastLaunch.getLaunchConfiguration();
			if (launchConfiguration != null) {
				try {
					String name= className;
					if (testName != null) 
						name+= "."+testName; 
					String configName= JUnitMessages.getFormattedString("TestRunnerViewPart.configName", name); 
					ILaunchConfigurationWorkingCopy tmp= launchConfiguration.copy(configName); 
					 
					tmp.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, className);
					
					tmp.setAttribute(JUnitBaseLaunchConfiguration.LAUNCH_CONTAINER_ATTR, ""); 
					if (testName != null) {
						tmp.setAttribute(JUnitBaseLaunchConfiguration.TESTNAME_ATTR, testName);
						
						
					}
					tmp.launch(launchMode, null);	
					return;	
				} catch (CoreException e) {
					ErrorDialog.openError(getSite().getShell(), 
						JUnitMessages.getString("TestRunnerViewPart.error.cannotrerun"), e.getMessage(), e.getStatus() 
					);
				}