Skip to content

Commit 9add69e

Browse files
committed
docs: document running tests without sharding in AGENTS.md
1 parent e023a8e commit 9add69e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ This is the source code for the Angular CLI and related build tooling. This guid
5050
- Run a specific test target: `pnpm bazel test //packages/angular/build:test`
5151
- Query test targets: `pnpm bazel query "tests(//packages/...)"`
5252
- Focus specific tests when debugging: use `fdescribe()` and `fit()`. NEVER commit focused tests to the repository.
53+
- Run tests without sharding: use `--config=no-sharding` (e.g., `pnpm bazel test //packages/angular/build:test --config=no-sharding`). This disables test sharding (`--test_sharding_strategy=disabled`) and flaky test retries (`--flaky_test_attempts=1`), which is especially useful when isolating test runs or debugging with focused tests (`fit`/`fdescribe`) to avoid empty shard failures and unnecessary re-runs.
5354
- **End-to-End Tests:**
5455
- Run subset of E2E tests: `pnpm bazel test //tests:e2e_node22 --config=e2e --test_filter="<filter>"`
5556

0 commit comments

Comments
 (0)