A working example of loadtest4j in Java.
# Runs all tests in development mode
mvn verify
# Runs load tests against staging
mvn test-compile surefire:test@load -P staging
# Runs load tests against production
mvn test-compile surefire:test@load -P production
- Tick the box in your IDE to enable one of your loadtest4j Maven profiles. (The
development
profile is enabled by default). - (Local mode) Start the Service Under Test.
- Hit Play to run the tests using that profile.