mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
Update DEVELOPER.md
This commit is contained in:
parent
b369089e9b
commit
be18003452
15
DEVELOPER.md
15
DEVELOPER.md
@ -134,6 +134,21 @@ npm test
|
||||
You should execute test suites before submitting a PR to github.
|
||||
All the tests are executed on our Continuous Integration infrastructure and a PR could only be merged once the tests pass.
|
||||
|
||||
**Executing only some tests**: When you are creating tests to some specific code, you may want only execute the tests that you're creating, so you waste less time to verify your code. To do this, you can temporarily modify your tests definitions adding `.only` *mocha* commands **(describe, it)**. Example:
|
||||
|
||||
```
|
||||
describe.only('your describe test', ....)
|
||||
```
|
||||
|
||||
>**Hint:** you can use the `--grep` flag to pass a Regex to `gulp-mocha`. Only the tests have have `describe`/`it`
|
||||
>statements that match the Regex will be run. For example:
|
||||
>
|
||||
>```shell
|
||||
>npm test -- --grep="github issues > #363"
|
||||
>```
|
||||
>
|
||||
>This is useful when trying to get a specific test or subset of tests to pass.
|
||||
|
||||
>**Hint:** you can use the `--grep` flag to pass a Regex to `gulp-mocha`. Only the tests have have `describe`/`it`
|
||||
>statements that match the Regex will be run. For example:
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user