a2ui-test-quality-check
Installation
SKILL.md
A2UI Test Quality & Assertions Auditing Skill
This skill guides you through the process of auditing codebase test suites to verify that tests are providing robust, meaningful assertions and verifying critical invariants, rather than simply running paths for code coverage.
Instructions
-
Locate Test Suites:
- Find all test directories and test files in each platform's implementation folder (e.g.
tests/,test/,*Tests.swift).
- Find all test directories and test files in each platform's implementation folder (e.g.
-
Audit Assertion Quality:
- For each test case, inspect the assertions used:
- Flag "weak assertions" that only verify non-null or truthy values without checking specific payload structure, field values, or types (e.g.
expect(result).not.toBeNull()on a complex object). - Flag "empty tests" that execute code blocks but lack any assertions or mocks verifications (e.g. executing to check for lack of exceptions, unless it is explicitly marked as a no-throw smoke test).
- Ensure that return models, state side effects, and events dispatched have corresponding value-matching assertions.
- Flag "weak assertions" that only verify non-null or truthy values without checking specific payload structure, field values, or types (e.g.
- For each test case, inspect the assertions used: