Project: JDT
Bug 213786 [JUnit] Add context menu action to import junit test results from package explorer
Reported: 2007-12-23 00:51:09 | Status: resolved fixed

Version: 3.4.0 Build id: I20071213-1700 When using tools such as Maven or Ant to run your unit tests it can be quite inconvenient to use the import results action in the JUnit view, as it requires an absolute system path. One solution is to add a context menu to files that look like test results. I will attach a patch that adds a content type for the JUnit test result (required quite a few changes). The patch requires a bit of cleanup (action placement and NLS)

Files changed in fix:
org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/JUnitMessages.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitMessages.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitViewEditorLauncher.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/ExceptionHandler.java