| id | REF-IGNORED-TESTS-001 | |||
|---|---|---|---|---|
| title | Ignored Tests Reference | |||
| doc_type | reference | |||
| status | published | |||
| audience | developers, maintainers | |||
| tags |
|
|||
| stories |
|
|||
| requirements |
|
|||
| acs | ||||
| adrs | ||||
| last_updated | 2026-01-28 |
This document catalogs all tests marked with #[ignore] in the codebase, explaining why they're ignored and how to run them.
| Crate | Test | Reason | Prerequisites |
|---|---|---|---|
| adapters-db-sqlx | test_postgres_repository_roundtrip |
Requires Docker | Docker daemon running |
| adapters-grpc | test_grpc_service_create_task |
Network/port binding | None |
| rust_iac_config | test_kustomize_required_but_missing |
Mutates global state | Run in isolation |
| rust_iac_config | test_environment_names |
Mutates global state | Run in isolation |
| xtask | test_validate_xtask_commands |
Infrastructure incomplete | Planned for v1.2 |
| xtask | test_extract_commands_from_enum |
Infrastructure incomplete | Planned for v1.2 |
| xtask-lib | test_validate_xtask_commands |
Infrastructure incomplete | Planned for v1.2 |
Crate: adapters-db-sqlx
Test: test_postgres_repository_roundtrip
File: crates/adapters-db-sqlx/tests/integration.rs
Requires Docker to be running to spin up a PostgreSQL container via testcontainers. This keeps CI fast and avoids requiring Docker in all development environments.
- Docker daemon must be running
- No specific Docker configuration needed (uses
postgres:16-alpineimage)
# Run just this test
cargo test -p adapters-db-sqlx test_postgres_repository_roundtrip -- --ignored
# Run all ignored tests in this crate
cargo test -p adapters-db-sqlx -- --ignored- Connects to ephemeral PostgreSQL container
- Creates tasks table via migration
- Tests full CRUD cycle: save, find_by_id, update_status, find_all
Crate: adapters-grpc
Test: test_grpc_service_create_task
File: crates/adapters-grpc/tests/smoke.rs
Starts a gRPC server on a random port and makes network calls. Kept ignored to avoid port-binding issues in parallel test runs.
None (uses in-memory repository, no external dependencies)
# Run just this test
cargo test -p adapters-grpc test_grpc_service_create_task -- --ignored
# Run all ignored tests in this crate
cargo test -p adapters-grpc --test smoke -- --ignored- Starts TaskServiceImpl gRPC server on random port
- Uses tonic client to call CreateTask RPC
- Verifies task creation succeeds end-to-end
Crate: rust_iac_config
Tests: test_kustomize_required_but_missing, test_environment_names
File: crates/rust_iac_config/tests/integration_tests.rs
These tests call std::env::set_current_dir() which mutates global process state. When run in parallel with other tests, this causes non-deterministic failures due to race conditions.
Must be run in isolation (single-threaded or as the only test)
# Run with single thread to avoid race conditions
cargo test -p rust_iac_config test_kustomize_required_but_missing -- --ignored --test-threads=1
cargo test -p rust_iac_config test_environment_names -- --ignored --test-threads=1
# Run all ignored tests in isolation
cargo test -p rust_iac_config -- --ignored --test-threads=1test_kustomize_required_but_missing: Tests error handling when kustomize binary is required but not availabletest_environment_names: Tests environment name resolution in Kubernetes manifests
Crate: xtask, xtask-lib
Tests: test_validate_xtask_commands, test_extract_commands_from_enum
Files: crates/xtask/src/validation.rs, crates/xtask-lib/src/validation.rs
These tests are part of validation infrastructure that isn't fully integrated yet. They're planned for v1.2 release.
Requires completion of validation infrastructure work
# These tests will fail until infrastructure is complete
cargo test -p xtask test_validate_xtask_commands -- --ignored
cargo test -p xtask test_extract_commands_from_enum -- --ignored
cargo test -p xtask-lib test_validate_xtask_commands -- --ignored- Validates that the Commands enum matches the spec
- Ensures xtask command names are synchronized with devex_flows.yaml
To run all ignored tests in the workspace (useful for comprehensive local validation):
# Run all ignored tests (may fail if Docker is not running)
cargo test --workspace -- --ignored
# Run with single thread to avoid global state conflicts
cargo test --workspace -- --ignored --test-threads=1- The
tier1-selftest.ymlworkflow does not run ignored tests by default - Integration tests requiring Docker should be run in a separate CI job with Docker support
- The
--ignoredflag is intentionally not used in standard CI to keep builds fast
When marking a test as ignored:
-
Always provide a reason in the ignore attribute:
#[ignore = "Requires Docker for testcontainers"] -
Document the test in this file with:
- Why it's ignored
- Prerequisites to run it
- How to run it
- What it tests
-
Ensure the test can actually pass when run with the right prerequisites