You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/DEVELOPER.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,22 +78,22 @@ There are two different test suites which can be run locally:
78
78
- Run a subset of the tests, use the full Bazel target example: `yarn bazel test //packages/schematics/angular:angular_test`
79
79
- For a complete list of test targets use the following Bazel query: `yarn bazel query "tests(//packages/...)"`
80
80
81
+
When debugging a specific test, change `describe()` or `it()` to `fdescribe()`
82
+
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.
83
+
81
84
You can find more info about debugging [tests with Bazel in the docs.](https://github.com/angular/angular-cli/blob/main/docs/process/bazel.md#debugging-jasmine_node_test)
82
85
83
86
### End to end tests
84
87
85
-
-Compile the packages being tested: `yarn build`
86
-
- Run all tests: `node tests/legacy-cli/run_e2e.js`
87
-
-Run a subset of the tests: `node tests/legacy-cli/run_e2e.js tests/legacy-cli/e2e/tests/i18n/ivy-localize-*`
88
-
-Run on a custom set of npm packages (tar files): `node tests/legacy-cli/run_e2e.js --package _angular_cli.tgz _angular_create.tgz dist/*.tgz tests/legacy-cli/e2e/tests/i18n/ivy-localize-*`
88
+
-For a complete list of test targets use the following Bazel query: `yarn bazel query "tests(//tests/...)"`
89
+
- Run a subset of the tests: `yarn bazel test //tests/legacy-cli:e2e --test_filter="tests/i18n/ivy-localize-*"`
90
+
-Use `bazel run` to debug failing tests debugging: `yarn bazel run //tests/legacy-cli:e2e --test_arg="--glob=tests/basic/aot.ts"`
91
+
-Provide additional `e2e_runner` using `--test_arg`: `--test_arg="--yarn"`
89
92
90
93
When running the debug commands, Node will stop and wait for a debugger to attach.
91
94
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
92
95
simpler debug story.
93
96
94
-
When debugging a specific test, change `describe()` or `it()` to `fdescribe()`
95
-
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.
96
-
97
97
## IDE Specific Usage
98
98
99
99
Some additional tips for developing in specific IDEs.
0 commit comments