31 lines
		
	
	
		
			888 B
		
	
	
	
		
			Markdown
		
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			888 B
		
	
	
	
		
			Markdown
		
	
	
	
| # 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 `noop.noop.registration.noop`
 | |
| - 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
 |