diff --git a/de.devboost.eclipse.junitloop/plugin.xml b/de.devboost.eclipse.junitloop/plugin.xml index dedb345..2d544e4 100644 --- a/de.devboost.eclipse.junitloop/plugin.xml +++ b/de.devboost.eclipse.junitloop/plugin.xml @@ -14,6 +14,12 @@ class="de.devboost.eclipse.junitloop.JUnitLoopTestRunListener"> + + + 0) { + final String line = traceLine.substring( + traceLine.indexOf(':') + 1, traceLine.length() - 1); + try { + final IType testClassType = launchedProject + .findType(testClassName); + final IResource resource = testClassType.getResource(); + + final IMarker marker = resource + .createMarker(MARKER_TEST_FAILURE); + marker.setAttribute(IMarker.MESSAGE, traceLine1); + marker.setAttribute(IMarker.SEVERITY, + IMarker.SEVERITY_WARNING); + marker.setAttribute(IMarker.LINE_NUMBER, + Integer.parseInt(line)); + marker.setAttribute(IMarker.LOCATION, "line " + line); + marker.setAttribute(IMarker.TRANSIENT, true); + + break; + } catch (final Exception e) { + JLoopPlugin.logError("Couldn't write problem marker", e); + } + } + } + } + private TestClass createTestClass(String testClassName) { // create local copy to avoid potential multi-threading problems IJavaProject localProject = launchedProject;