0
0
mirror of https://github.com/signalapp/Signal-Server.git synced 2024-09-19 11:32:16 +02:00
Signal-Server/TESTING.md
Chris Eager 0e4be0c85a
Add tests for WhisperServerService#run
Additionally, `LocalWhisperServerService` may be used for integration testing.
2024-04-29 11:05:35 -05:00

888 B

Testing

Automated tests

The full suite of automated tests can be run using Maven from the project root:

./mvnw verify

Test server

The service can be run in a feature-limited test mode by running the Maven integration-test goal with the test-server profile activated:

./mvnw integration-test -Ptest-server [-DskipTests=true]

This runs LocalWhisperServerService with test configuration and secrets. External registration clients are stubbed so that:

  • a captcha requirement can be satisfied with test.test.registration.test
  • any string will be accepted for a phone verification code