org.tap4j.ext.junit
Class JUnitTestTapReporter

Package class diagram package JUnitTestTapReporter
java.lang.Object
  extended by org.junit.runner.notification.RunListener
      extended by org.tap4j.ext.junit.JUnitTestTapReporter

public class JUnitTestTapReporter
extends org.junit.runner.notification.RunListener

Listener implemented to generate a tap file with the testes results for every class, suite and method tested

Since:
1.4.3

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

JUnitTestTapReporter

public JUnitTestTapReporter()
Method Detail

testRunStarted

public void testRunStarted(org.junit.runner.Description description)
                    throws Exception
Called right before any tests from a specific class are run.

Overrides:
testRunStarted in class org.junit.runner.notification.RunListener
Throws:
Exception
See Also:
RunListener.testRunStarted(org.junit.runner.Description)

testRunFinished

public void testRunFinished(org.junit.runner.Result result)
                     throws Exception
Called right after all tests from a specific class are run.

Overrides:
testRunFinished in class org.junit.runner.notification.RunListener
Throws:
Exception
See Also:
RunListener.testRunFinished(org.junit.runner.Result)

testIgnored

public void testIgnored(org.junit.runner.Description description)
                 throws Exception
Called when a specific test has been skipped (for whatever reason).

Overrides:
testIgnored in class org.junit.runner.notification.RunListener
Throws:
Exception
See Also:
RunListener.testIgnored(org.junit.runner.Description)

testStarted

public void testStarted(org.junit.runner.Description description)
                 throws Exception
Called when a specific test has started.

Overrides:
testStarted in class org.junit.runner.notification.RunListener
Throws:
Exception
See Also:
RunListener.testStarted(org.junit.runner.Description)

testFailure

public void testFailure(org.junit.runner.notification.Failure failure)
                 throws Exception
Called when a specific test has failed.

Overrides:
testFailure in class org.junit.runner.notification.RunListener
Throws:
Exception
See Also:
RunListener.testFailure(org.junit.runner.notification.Failure)

testFinished

public void testFinished(org.junit.runner.Description description)
                  throws Exception
Called after a specific test has finished.

Overrides:
testFinished in class org.junit.runner.notification.RunListener
Throws:
Exception
See Also:
RunListener.testFinished(org.junit.runner.Description)

generateTapPerMethod

protected void generateTapPerMethod(org.junit.runner.Result result)
Generate tap file for each method

Parameters:
result -

generateTapPerClass

protected void generateTapPerClass(org.junit.runner.Result result)
Generate tap file for a class

Parameters:
result -

generateTapPerSuite

protected void generateTapPerSuite(org.junit.runner.Result result)
Generate tap file for per suite

Parameters:
result -

setTestInfo

protected void setTestInfo(org.junit.runner.Description description)
Set test info

Parameters:
description -

setFailedTestsStatus

protected void setFailedTestsStatus(org.junit.runner.Result result)
Set failed info

Parameters:
result -


Copyright © 2010-2012 TupiLabs. All Rights Reserved.