Skip to content

Commit 0adb7b7

Browse files
committed
docs: update testing chapter with general test commands
Closes: angular#18710
1 parent a98c71d commit 0adb7b7

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

README.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,16 @@ as expected.
113113

114114
## Testing
115115

116-
There are three different test suites which can be run locally:
117-
118-
* Unit tests
119-
* Run: `yarn test --full`
120-
* Debug: `yarn debug:test --full`
121-
* Large tests
122-
* Run: `yarn test-large --full`
123-
* Debug: `yarn debug:test-large --full`
124-
* End to end tests
125-
* Run: `node tests/legacy-cli/run_e2e.js`
126-
* Run subset of tests: `node tests/legacy-cli/run_e2e.js tests/legacy-cli/e2e/tests/i18n/ivy-localize-*`
127-
128-
When running the debug commands, Node will stop and wait for a debugger to
129-
attach. You can attach your IDE to the debugger to stop on breakpoints and step through the code. Also see [IDE Specific Usage](#ide-specific-usage) for a
130-
simpler debug story.
131-
132-
When debugging a specific test, change `describe()` or `it()` to `fdescribe()`
133-
and `fit()` to focus execution to just that one test. This will keep the output clean and speed up execution by not running irrelevant tests.
116+
To test a single package use the full Bazel target example:
117+
118+
`yarn bazel test //packages/schematics/angular:angular_test`
119+
120+
For a a complete list of test targets use the below Bazel query:
121+
122+
`yarn bazel query "tests(//packages/...)"`
123+
124+
> You can find more info about debugging [tests with Bazel in the docs.](https://github.com/angular/angular-cli/blob/master/docs/process/bazel.md#debugging-jasmine_node_test)
125+
134126

135127
## IDE Specific Usage
136128

0 commit comments

Comments
 (0)