Skip to content

Add Gate 1 AST static vacuity analysis linter to prevent silent test omissions and conditional asserts. - #3277

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_971169428
Open

Add Gate 1 AST static vacuity analysis linter to prevent silent test omissions and conditional asserts.#3277
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_971169428

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 28, 2026

Copy link
Copy Markdown

Add Gate 1 AST static vacuity analysis linter to prevent silent test omissions and conditional asserts.

Key Capabilities:

  1. Static AST Vacuity Analyzer (tests/ui/lint_vacuity.py):
    • Scans test ASTs recursively for conditional assertions (if blocks containing assert or expect), vacuous tests lacking assertions, and empty locators.
  2. Build & CI Integration (tests/ui/BUILD, kokoro/gcp_ubuntu/kokoro_build_testing.sh):
    • Adds lint_vacuity_test target and CI step to ensure 0 vacuity violations across all UI test suites.

@copybara-service copybara-service Bot changed the title Introduces static AST vacuity linter to audit test suites against tautological and vacuous assertions: Add Gate 1 AST static vacuity analysis linter to prevent silent test omissions and conditional asserts. Sep 1, 2026
…omissions and conditional asserts.

Key Capabilities:
1. Static AST Vacuity Analyzer (tests/ui/lint_vacuity.py):
   - Scans test ASTs recursively for conditional assertions (if blocks containing assert or expect), vacuous tests lacking assertions, and empty locators.
2. Build & CI Integration (tests/ui/BUILD, kokoro/gcp_ubuntu/kokoro_build_testing.sh):
   - Adds lint_vacuity_test target and CI step to ensure 0 vacuity violations across all UI test suites.

PiperOrigin-RevId: 971169428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants