addTestListener

open fun addTestListener(listener: TestListener)(source)

Registers a test listener with this task. Consider also the following handy methods for quicker hooking into test execution: beforeTest, afterTest, beforeSuite, afterSuite

This listener will NOT be notified of tests executed by other tasks. To get that behavior, use addListener.

Parameters

listener

The listener to add.