Bug 128048 [junit] Clear history action in JUnit view has misleading name
I20060215-0010 Clear history action suggests that past (already terminated) testruns are cleared from the testrun history, but instead the action terminates and removes all active and inactive testruns. I suggest to either implement the action to only clear terminated testruns from the history or rename it to something like "Terminate All and Remove" with an icon resembling the ones from debug.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/TestRunSession.java
fIsStopped= true;
		fTestRunnerClient.stopTest();
	}
	public boolean isKeptAlive() {
		return fTestRunnerClient.isRunning() && ILaunchManager.DEBUG_MODE.equals(getLaunch().getLaunchMode());
	}
	/**
	 * @return <code>true</code> iff this session has been started, but not ended nor stopped nor terminated
	 */
	public boolean isRunning() {
		return fIsRunning;
	}
	
	/**
	 * @param testId 
	 * @param className 
	 * @param testName 
	 * @param launchMode 
	 * @return <code>false</code> iff the rerun could not be started
	 * @throws CoreException 
	 */
	public boolean rerunTest(String testId, String className, String testName, String launchMode) throws CoreException {
		if (isKeptAlive()) {
			Status status= ((TestCaseElement) getTestElement(testId)).getStatus();
			if (status == Status.ERROR) {
				fErrorCount--;
			} else if (status == Status.FAILURE) {
				fFailureCount--;
			}
			fTestRunnerClient.rerunTest(testId, className, testName);