Skip to content

Commit 4df6b95

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

File tree

2 files changed

+18
-36
lines changed

2 files changed

+18
-36
lines changed

README.md

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,15 @@ 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)
134125

135126
## IDE Specific Usage
136127

scripts/templates/readme.ejs

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,15 @@ as expected.
121121

122122
## Testing
123123

124-
There are three different test suites which can be run locally:
125-
126-
* Unit tests
127-
* Run: `yarn test --full`
128-
* Debug: `yarn debug:test --full`
129-
* Large tests
130-
* Run: `yarn test-large --full`
131-
* Debug: `yarn debug:test-large --full`
132-
* End to end tests
133-
* Run: `node tests/legacy-cli/run_e2e.js`
134-
* Run subset of tests: `node tests/legacy-cli/run_e2e.js tests/legacy-cli/e2e/tests/i18n/ivy-localize-*`
135-
136-
When running the debug commands, Node will stop and wait for a debugger to
137-
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
138-
simpler debug story.
139-
140-
When debugging a specific test, change `describe()` or `it()` to `fdescribe()`
141-
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.
124+
To test a single package use the full Bazel target example:
125+
126+
`yarn bazel test //packages/schematics/angular:angular_test`
127+
128+
For a a complete list of test targets use the below Bazel query:
129+
130+
`yarn bazel query "tests(//packages/...)"`
131+
132+
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)
142133

143134
## IDE Specific Usage
144135

0 commit comments

Comments
 (0)