Improve testing instructions
This commit is contained in:
+11
-14
@@ -65,25 +65,22 @@ One area that always needs attention is improving out unit test coverage, you ca
|
|||||||
|
|
||||||
### Unit tests
|
### Unit tests
|
||||||
|
|
||||||
All unit tests can be run with:
|
Unit tests are run with `yarn test-unit`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# All unit tests
|
||||||
yarn test-unit
|
yarn test-unit
|
||||||
```
|
|
||||||
|
|
||||||
Run a subset of tests like this:
|
# Absolute file path
|
||||||
|
|
||||||
```sh
|
|
||||||
# Absolute file path:
|
|
||||||
yarn test-unit out-esbuild/browser/Terminal.test.js
|
yarn test-unit out-esbuild/browser/Terminal.test.js
|
||||||
|
|
||||||
# Wildcard:
|
# Filter by wildcard
|
||||||
yarn test-unit out-esbuild/**/Terminal.test.js
|
yarn test-unit out-esbuild/**/Terminal.test.js
|
||||||
|
|
||||||
# All of an specific addon's tests:
|
# Specific addon unit tests tests
|
||||||
yarn test-unit addons/addon-image/out-esbuild/*.test.js
|
yarn test-unit addons/addon-image/out-esbuild/*.test.js
|
||||||
|
|
||||||
# Multiple files:
|
# Multiple files
|
||||||
yarn test-unit out-esbuild/**/Terminal.test.js out-esbuild/**/InputHandler.test.js
|
yarn test-unit out-esbuild/**/Terminal.test.js out-esbuild/**/InputHandler.test.js
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -91,16 +88,16 @@ These use mocha to run all `.test.js` files within the esbuild output (`out-esbu
|
|||||||
|
|
||||||
### Integration tests
|
### Integration tests
|
||||||
|
|
||||||
All integration tests can be run with:
|
Integration tests are run with `yarn test-integration`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# All integration tests
|
||||||
yarn test-integration
|
yarn test-integration
|
||||||
```
|
|
||||||
|
|
||||||
Run a particular suite with the `--suite` flag:
|
# Core integration tests
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn test-integration --suite=core
|
yarn test-integration --suite=core
|
||||||
|
|
||||||
|
# Specific addon integration tests
|
||||||
yarn test-integration --suite=addon-search
|
yarn test-integration --suite=addon-search
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user