Skip to content

Commit d9561f7

Browse files
committed
fixup! docs: document builder integration test targets in AGENTS.md
1 parent 1ff629a commit d9561f7

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎AGENTS.md‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,10 @@ This is the source code for the Angular CLI and related build tooling. This guid
5353
- **NEVER** use or fallback to `os.tmpdir()`. Bazel executes tests in hermetic sandboxes and sets `TEST_TMPDIR` to an isolated, sandboxed directory. Using `os.tmpdir()` can cause sandboxing failures, permission errors, or file leakage outside the Bazel sandbox.
5454
- **Unit & Integration Tests:**
5555
- Run all unit and integration tests: `pnpm bazel test //packages/...`
56-
- Run a specific unit test target: `pnpm bazel test //packages/angular/build:test` (note: this excludes builder integration tests under `packages/angular/build/src/builders/**/tests/**`).
57-
- Run `@angular/build` builder integration test targets (for specs in `packages/angular/build/src/builders/<builder>/tests/**`):
58-
- `pnpm bazel test //packages/angular/build:application_integration_tests`
59-
- `pnpm bazel test //packages/angular/build:dev-server_integration_tests`
60-
- `pnpm bazel test //packages/angular/build:karma_integration_tests`
61-
- `pnpm bazel test //packages/angular/build:library_integration_tests`
62-
- `pnpm bazel test //packages/angular/build:unit-test_integration_tests`
63-
- Query test targets: `pnpm bazel query "tests(//packages/...)"`
56+
- Run a specific unit test target (e.g., `pnpm bazel test //packages/angular/build:test`). Note that package `:test` targets may exclude builder integration tests (such as specs under `**/builders/**/tests/**`).
57+
- Run a specific builder integration test target (e.g., `pnpm bazel test //packages/angular/build:library_integration_tests` or `pnpm bazel test //packages/angular/build:application_integration_tests`).
58+
- Query all test targets: `pnpm bazel query "tests(//packages/...)"`
59+
- Find the exact test target for a specific spec file: `pnpm bazel query "kind(jasmine_test, rdeps(//packages/..., <path/to/file_spec.ts>))"`
6460
- Focus specific tests when debugging: use `fdescribe()` and `fit()`. NEVER commit focused tests to the repository.
6561
- Run tests without sharding when isolating or debugging: use `--config=no-sharding` with a specific test target (e.g., `pnpm bazel test //packages/angular/build:library_integration_tests --config=no-sharding`).
6662
This disables test sharding (`--test_sharding_strategy=disabled`) and flaky test retries (`--flaky_test_attempts=1`).

0 commit comments

Comments
 (0)