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
docs: move all bazel testing info to a single location (angular#46084)
instead of presenting the same (or similar information) in both the
DEVELOPER.md and the BAZEL.md files, more all the information in the
BAZEL file and refer to that section in the DEVELOPER file
PR Closeangular#46084
Bazel is used as the primary tool for building and testing Angular. Building and testing are
78
-
incremental with Bazel, and it's possible to only run tests for an individual package instead
79
-
of for all packages. Read more about this in the [BAZEL.md](./BAZEL.md) document.
77
+
Bazel is used as the primary tool for building and testing Angular.
80
78
81
-
You should execute all test suites before submitting a PR to GitHub.
82
-
-`yarn test //packages/...`
79
+
To see how to run and debug Angular tests locally please refer to the Bazel [Testing Angular](./BAZEL.md#testing-angular) section.
83
80
84
-
**Note**: The ellipsis in the commands above is not meant to be substituted by a package name, but
85
-
is used by Bazel as a wildcard to execute all tests in the specified path. To execute tests for a
86
-
single package, the commands are (exemplary):
87
-
-`yarn test //packages/core/...` for all tests, or
88
-
-`yarn test //packages/core/test:test_web_firefox` for a particular test suite.
81
+
Note that you should execute all test suites before submitting a PR to GitHub (`yarn test //packages/...`).
89
82
90
-
**Note**: The first test run will be much slower than future runs. This is because future runs will
91
-
benefit from Bazel's capability to do incremental builds.
83
+
However, affected tests will be executed on our CI infrastructure. So if you forgot to run some affected tests which would fail, GitHub will indicate the error state and present you the failures.
92
84
93
-
All the tests are executed on our Continuous Integration infrastructure. PRs can only be
94
-
merged if the code is formatted properly and all tests are passing.
85
+
PRs can only be merged if the code is formatted properly and all tests are passing.
0 commit comments