Wildcard to run all service tests [*] (#2739)

Close #2685.
This commit is contained in:
Paul Melnikow
2019-01-11 16:11:46 -05:00
committed by GitHub
parent afcc0e3920
commit b3606724fd
2 changed files with 6 additions and 1 deletions

View File

@@ -290,6 +290,11 @@ For example:
- [Travis Sonar] Support user token authentication
- Add tests for [CRAN] and [CPAN]
In the rare case when it's necessary to see the output of a full service-test
run in a PR, include `[*]` in the title. Unless all the tests pass, the build
will fail, so likely it will be necessary to remove it and re-run the tests
before merging.
## Getting help
If you have questions about how to write your tests, please open an issue. If

View File

@@ -102,7 +102,7 @@ if (stdinOption && onlyOption) {
onlyServices = onlyOption.split(',')
}
if (typeof onlyServices === 'undefined') {
if (typeof onlyServices === 'undefined' || onlyServices.includes('*')) {
console.info('Running all service tests.')
} else if (onlyServices.length === 0) {
console.info('No service tests to run. Exiting.')