Description | JUnit 5 | Spock |
---|---|---|
Test execution |
|
|
Fixture set up and tear down |
|
|
Descriptive test names |
|
Method name as String |
Disabling tests |
|
|
Expecting thrown exceptions |
|
|
Repeating test execution |
|
|
Declaring timeouts |
|
|
Conditional test execution |
|
|
Data-driven tests |
|
|
Mocking |
Mockito |
Built-in mock capabilities |
Filtering test execution |
|
Custom annotations with runner configuration |
Extending the test framework |
|
|
All tests can be executed with the help of Gradle. The project provides a Gradle Wrapper so no installation of the Gradle runtime is needed.