Skip to content

Commit ae28874

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎AGENTS.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ 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.
53+
- Run tests without sharding: use `--config=no-sharding` (e.g., `pnpm bazel test //packages/angular/build:test --config=no-sharding`).
54+
This disables test sharding (`--test_sharding_strategy=disabled`) and flaky test retries (`--flaky_test_attempts=1`).
55+
This is especially useful when isolating test runs or debugging with focused tests (`fit`/`fdescribe`) to avoid empty shard failures and unnecessary re-runs.
5456
- **End-to-End Tests:**
5557
- Run subset of E2E tests: `pnpm bazel test //tests:e2e_node22 --config=e2e --test_filter="<filter>"`
5658

0 commit comments

Comments
 (0)