Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.tasks.testing
Interface TestListener

    public interface TestListener

Interface for listening to test execution. The intent is to be framework agnostic. Currently this interface can support feedback from JUnit and TestNG tests.

Method Summary
`void` | `afterSuite(TestDescriptor suite, TestResult result)` Called after a test suite is finished.
`void` | `afterTest(TestDescriptor testDescriptor, TestResult result)` Called after a test is finished.
`void` | `beforeSuite(TestDescriptor suite)` Called before a test suite is started.
`void` | `beforeTest(TestDescriptor testDescriptor)` Called before a test is started.

Method Detail

### beforeSuite

    void beforeSuite(TestDescriptor suite)

  Called before a test suite is started.

  Parameters:
    `suite` - The suite whose tests are about to be executed.

### afterSuite

    void afterSuite(TestDescriptor suite,
                    TestResult result)

  Called after a test suite is finished.

  Parameters:
    `suite` - The suite whose tests have finished being executed.
    `result` - The aggregate result for the suite.

### beforeTest

    void beforeTest(TestDescriptor testDescriptor)

  Called before a test is started.

  Parameters:
    `testDescriptor` - The test which is about to be executed.

### afterTest

    void afterTest(TestDescriptor testDescriptor,
                   TestResult result)

  Called after a test is finished.

  Parameters:
    `testDescriptor` - The test which has finished executing.
    `result` - The test result.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD