@Override public void onTestStart(ITestResult result) { jacoco.onTestStart(getName(result)); }
public synchronized void onTestStart() { if (testStarted) { throw new JacocoControllerError("Looks like several tests executed in parallel in the same JVM, thus coverage per test can't be recorded correctly."); } // Dump coverage between tests dump(""); testStarted = true; }
@Override public void onTestSuccess(ITestResult result) { jacoco.onTestFinish(getName(result)); }
@Override public void testFinished(Description description) { jacoco.onTestFinish(getName(description)); }
@Override public void testStarted(Description description) { jacoco.onTestStart(getName(description)); }
@Override public void testStarted(Description description) { getJacocoController().onTestStart(); }
@Override public void onTestStart(ITestResult result) { getJacocoController().onTestStart(); }
public synchronized void onTestFinish(String name) { // Dump coverage for test dump(name); testStarted = false; }
public static synchronized JacocoController getInstance() { if (singleton == null) { singleton = new JacocoController(); } return singleton; }
protected JacocoController getJacocoController() { if (jacoco == null) { jacoco = JacocoController.getInstance(); } return jacoco; }
@Override public void onTestFailure(ITestResult result) { jacoco.onTestFinish(getName(result)); }
public synchronized void onTestStart(String name) { if (testStarted) { throw new JacocoControllerError("Looks like several tests executed in parallel in the same JVM, thus coverage per test can't be recorded correctly."); } // Dump coverage between tests dump(""); testStarted = true; }
@Override public void testFinished(Description description) { jacoco.onTestFinish(getName(description)); }
public synchronized void onTestFinish(String name) { // Dump coverage for test dump(name); testStarted = false; }
@Override public void onTestFailedButWithinSuccessPercentage(ITestResult result) { jacoco.onTestFinish(getName(result)); }
@Override public void onTestSkipped(ITestResult result) { jacoco.onTestFinish(getName(result)); }
@Override public void onTestSuccess(ITestResult result) { jacoco.onTestFinish(getName(result)); }
@Override public void onTestFailedButWithinSuccessPercentage(ITestResult result) { jacoco.onTestFinish(getName(result)); }
@Override public void onTestFailure(ITestResult result) { jacoco.onTestFinish(getName(result)); }
@Override public void onTestSkipped(ITestResult result) { jacoco.onTestFinish(getName(result)); }