|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.runner.notification.RunListener org.tap4j.ext.junit.JUnitTestTapReporter
public class JUnitTestTapReporter
Listener implemented to generate a tap file with the testes results for every class, suite and method tested
Constructor Summary | |
---|---|
JUnitTestTapReporter()
|
Method Summary | |
---|---|
protected void |
generateTapPerClass(org.junit.runner.Result result)
Generate tap file for a class |
protected void |
generateTapPerMethod(org.junit.runner.Result result)
Generate tap file for each method |
protected void |
generateTapPerSuite(org.junit.runner.Result result)
Generate tap file for per suite |
protected void |
setFailedTestsStatus(org.junit.runner.Result result)
Set failed info |
protected void |
setTestInfo(org.junit.runner.Description description)
Set test info |
void |
testFailure(org.junit.runner.notification.Failure failure)
Called when a specific test has failed. |
void |
testFinished(org.junit.runner.Description description)
Called after a specific test has finished. |
void |
testIgnored(org.junit.runner.Description description)
Called when a specific test has been skipped (for whatever reason). |
void |
testRunFinished(org.junit.runner.Result result)
Called right after all tests from a specific class are run. |
void |
testRunStarted(org.junit.runner.Description description)
Called right before any tests from a specific class are run. |
void |
testStarted(org.junit.runner.Description description)
Called when a specific test has started. |
Methods inherited from class org.junit.runner.notification.RunListener |
---|
testAssumptionFailure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JUnitTestTapReporter()
Method Detail |
---|
public void testRunStarted(org.junit.runner.Description description) throws Exception
testRunStarted
in class org.junit.runner.notification.RunListener
Exception
RunListener.testRunStarted(org.junit.runner.Description)
public void testRunFinished(org.junit.runner.Result result) throws Exception
testRunFinished
in class org.junit.runner.notification.RunListener
Exception
RunListener.testRunFinished(org.junit.runner.Result)
public void testIgnored(org.junit.runner.Description description) throws Exception
testIgnored
in class org.junit.runner.notification.RunListener
Exception
RunListener.testIgnored(org.junit.runner.Description)
public void testStarted(org.junit.runner.Description description) throws Exception
testStarted
in class org.junit.runner.notification.RunListener
Exception
RunListener.testStarted(org.junit.runner.Description)
public void testFailure(org.junit.runner.notification.Failure failure) throws Exception
testFailure
in class org.junit.runner.notification.RunListener
Exception
RunListener.testFailure(org.junit.runner.notification.Failure)
public void testFinished(org.junit.runner.Description description) throws Exception
testFinished
in class org.junit.runner.notification.RunListener
Exception
RunListener.testFinished(org.junit.runner.Description)
protected void generateTapPerMethod(org.junit.runner.Result result)
result
- protected void generateTapPerClass(org.junit.runner.Result result)
result
- protected void generateTapPerSuite(org.junit.runner.Result result)
result
- protected void setTestInfo(org.junit.runner.Description description)
description
- protected void setFailedTestsStatus(org.junit.runner.Result result)
result
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |