Check tests
.
- Run tests
./gradlew --rerun-tasks :part2.1-database:test :part2.1-database:createTestsExecutionReport --continue
- Check reports
- Enable parallel execution (in SpockConfig.groovy)
- Run tests
./gradlew --rerun-tasks :part2.1-database:test :part2.1-database:createTestsExecutionReport --continue
- Determine and remove shared state.
- unique index
- total number of documents in database
What to check?
- test setup/cleanup
- assertions
- modify parallel thread pool e.g.
fixed(4)
- add randomization using
@RandomizedOrder
class annotation (add it to*Test
class)
- there should be no usages of
removeAll()
andcount()
in tests.