-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for
WhisperServerService#run
Additionally, `LocalWhisperServerService` may be used for integration testing.
- Loading branch information
1 parent
b6f8bca
commit 0e4be0c
Showing
84 changed files
with
2,157 additions
and
553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Testing | ||
|
||
## Automated tests | ||
|
||
The full suite of automated tests can be run using Maven from the project root: | ||
|
||
```sh | ||
./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: | ||
|
||
```sh | ||
./mvnw integration-test -Ptest-server [-DskipTests=true] | ||
``` | ||
|
||
This runs [`LocalWhisperServerService`][lwss] with [test configuration][test.yml] and [secrets][test 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 | ||
|
||
[lwss]: service/src/test/java/org/whispersystems/textsecuregcm/LocalWhisperServerService.java | ||
|
||
[test.yml]: service/src/test/resources/config/test.yml | ||
|
||
[test secrets]: service/src/test/resources/config/test-secrets-bundle.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.