Skip to content

Commit 5b5f7b0

Browse files
committed
docs: update testing chapter with general test commands
Closes: #18710
1 parent a98c71d commit 5b5f7b0

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,20 @@ as expected.
115115

116116
There are three different test suites which can be run locally:
117117

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
118+
### Unit tests
119+
* Run all tests: `yarn bazel test //packages/...`
120+
* Run a subset of the tests, use the full Bazel target example: `yarn bazel test //packages/schematics/angular:angular_test`
121+
* For a complete list of test targets use the following Bazel query: `yarn bazel query "tests(//packages/...)"`
122+
123+
You can find more info about debugging [tests with Bazel in the docs.]
124+
(https://github.com/angular/angular-cli/blob/master/docs/process/bazel.md#debugging-jasmine_node_test)
125+
126+
### End to end tests
125127
* 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-*`
128+
* Run a subset of the tests: `node tests/legacy-cli/run_e2e.js tests/legacy-cli/e2e/tests/i18n/ivy-localize-*`
127129

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+
When running the debug commands, Node will stop and wait for a debugger to attach.
131+
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
130132
simpler debug story.
131133

132134
When debugging a specific test, change `describe()` or `it()` to `fdescribe()`

scripts/templates/readme.ejs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,20 @@ as expected.
123123

124124
There are three different test suites which can be run locally:
125125

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
126+
### Unit tests
127+
* Run all tests: `yarn bazel test //packages/...`
128+
* Run a subset of the tests, use the full Bazel target example: `yarn bazel test //packages/schematics/angular:angular_test`
129+
* For a complete list of test targets use the following Bazel query: `yarn bazel query "tests(//packages/...)"`
130+
131+
You can find more info about debugging [tests with Bazel in the docs.]
132+
(https://github.com/angular/angular-cli/blob/master/docs/process/bazel.md#debugging-jasmine_node_test)
133+
134+
### End to end tests
133135
* 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-*`
136+
* Run a subset of the tests: `node tests/legacy-cli/run_e2e.js tests/legacy-cli/e2e/tests/i18n/ivy-localize-*`
135137

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+
When running the debug commands, Node will stop and wait for a debugger to attach.
139+
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
138140
simpler debug story.
139141

140142
When debugging a specific test, change `describe()` or `it()` to `fdescribe()`

0 commit comments

Comments
 (0)