Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.09 KB

File metadata and controls

32 lines (22 loc) · 1.09 KB

Refactoring integration tests in an example REST service with a message broker

Familiarize yourself with this service

sequence diagram

Check tests.

Refactor tests

  1. Run tests ./gradlew --rerun-tasks :part2.3-message-broker:test :part2.3-message-broker:createTestsExecutionReport --continue
  2. Check reports
  3. Enable parallel execution (in SpockConfig.groovy)
  4. Run tests ./gradlew --rerun-tasks :part2.3-message-broker:test :part2.3-message-broker:createTestsExecutionReport --continue
  5. Determine and remove shared state.

Shared state

  • stubs regarding message broker (HermesMock state)

What to check?


home