TestNG Extension for recheck. Automatic set up and tear down of tests using recheck.
- Calls
startTest
on allRecheckLifecycle
objects before each test. - Calls
capTest
on allRecheckLifecycle
objects after each test. - Calls
cap
on allRecheckLifecycle
objects after all tests.
The extension automatically calls startTest
, capTest
and cap
. So it is no longer required to call those methods manually. This reduces boilerplate code and ensures the lifecycle within a test using recheck.
You can add recheck-testng-extension as an external dependency to your project. It is available via the release-page which allows you to include it into your favorite build tool or via Maven central:
For the current version, please refer to the release-page.
<dependency>
<groupId>de.retest</groupId>
<artifactId>recheck-testng-extension</artifactId>
<version>${LATEST_VERSION_FROM_ABOVE_LINK}</version>
</dependency>
compile 'de.retest:recheck-testng-extension:${LATEST_VERSION_FROM_ABOVE_LINK}'
Recheck TestNG extension uses TestNG's listener mechanism. It can be used by adding @Listeners(RecheckHook.class)
to your test class.
This project is licensed under the AGPL license.