Check tests
.
- Run tests
./gradlew --rerun-tasks :part2.2-rest:test :part2.2-rest:createTestsExecutionReport --continue
- Check reports
- Enable parallel execution (in SpockConfig.groovy)
- Run tests
./gradlew --rerun-tasks :part2.2-rest:test :part2.2-rest:createTestsExecutionReport --continue
- Temporarily disable test
retry email fetching after error response ...
- add@Ignore
annotation to method containing this test. - Temporarily disable test
retry email sending after error response ...
- add@Ignore
annotation to method containing this test. - Temporarily disable tests in
SendEmailResourceTest
class - add@Ignore
annotation this class. - Determine and remove shared state.
- Remove
@Ignore
fromretry email fetching after error response ...
and fix tests. - Remove
@Ignore
fromretry email sending after error response ...
and fix tests. - Remove
@Ignore
fromSendEmailResourceTest
class and fix tests.
- stubs regarding REST dependency used in many tests (Wiremock state)
What to check?
- test setup/cleanup
- stubs (check Wiremock docs for simulating fault and for stateful behaviour)
- assertions
One test is ignored. It uses scenarios. Read about stateful behaviour and scenarios. Enable this test and fix