Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 2.94 KB

README.md

File metadata and controls

50 lines (33 loc) · 2.94 KB

Build Status Latest recheck-testng-extension on Maven Central Latest recheck-testng-extension releases on JitPack license PRs welcome code with hearth by retest

TestNG Extension for recheck. Automatic set up and tear down of tests using recheck.

Features

  • Calls startTest on all RecheckLifecycle objects before each test.
  • Calls capTest on all RecheckLifecycle objects after each test.
  • Calls cap on all RecheckLifecycle objects after all tests.

Advantages

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.

Build tools

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: Latest recheck-testng-extension on Maven Central

For the current version, please refer to the release-page.

Maven

<dependency>
	<groupId>de.retest</groupId>
	<artifactId>recheck-testng-extension</artifactId>
	<version>${LATEST_VERSION_FROM_ABOVE_LINK}</version>
</dependency>

Gradle

compile 'de.retest:recheck-testng-extension:${LATEST_VERSION_FROM_ABOVE_LINK}'

Usage

Recheck TestNG extension uses TestNG's listener mechanism. It can be used by adding @Listeners(RecheckHook.class) to your test class.

License

This project is licensed under the AGPL license.