mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Replace MOCHA_GREP with TEST_NAME_PATTERN (#34404)
GitOrigin-RevId: b1b2d1be3d0725f930d83ef035836482ffb72dcd
This commit is contained in:
committed by
Copybot
parent
daf4a0e412
commit
a63fd554c3
@@ -46,7 +46,7 @@ make test_unit
|
||||
During development it is often useful to only run a subset of tests, which can be configured with arguments to the mocha CLI:
|
||||
|
||||
```
|
||||
make test_unit MOCHA_GREP='AuthorizationManager'
|
||||
make test_unit TEST_NAME_PATTERN='AuthorizationManager'
|
||||
```
|
||||
|
||||
To run only the unit tests for a single module do:
|
||||
@@ -55,10 +55,10 @@ To run only the unit tests for a single module do:
|
||||
make test_unit_module MODULE=saas-authentication
|
||||
```
|
||||
|
||||
Module tests can also use a MOCHA_GREP argument:
|
||||
Module tests can also use a TEST_NAME_PATTERN argument:
|
||||
|
||||
```
|
||||
make test_unit_module MODULE=saas-authentication MOCHA_GREP=SSO
|
||||
make test_unit_module MODULE=saas-authentication TEST_NAME_PATTERN=SSO
|
||||
```
|
||||
|
||||
### Acceptance Tests
|
||||
@@ -84,7 +84,7 @@ make test_acceptance_app_stop_service
|
||||
During development it is often useful to only run a subset of tests, which can be configured with arguments to the mocha CLI:
|
||||
|
||||
```
|
||||
make test_acceptance_run MOCHA_GREP='AuthorizationManager'
|
||||
make test_acceptance_run TEST_NAME_PATTERN='AuthorizationManager'
|
||||
```
|
||||
|
||||
To run only the acceptance tests for a single module do:
|
||||
@@ -93,10 +93,10 @@ To run only the acceptance tests for a single module do:
|
||||
make test_acceptance_module MODULE=saas-authentication
|
||||
```
|
||||
|
||||
Module tests can also use a MOCHA_GREP argument:
|
||||
Module tests can also use a TEST_NAME_PATTERN argument:
|
||||
|
||||
```
|
||||
make test_acceptance_module MODULE=saas-authentication MOCHA_GREP=SSO
|
||||
make test_acceptance_module MODULE=saas-authentication TEST_NAME_PATTERN=SSO
|
||||
```
|
||||
|
||||
## Routes
|
||||
|
||||
Reference in New Issue
Block a user