Lint Java tests for weak assertions
tql.lintRun test-quality linter to catch tautological assertions, missing assertions, hard-coded sleeps, and swallowed exceptions. Returns findings with rule id, severity, location, and fix hints for actionable improvements.
Instructions
Runs test-quality-linter over test sources and returns findings with rule id, severity, location, message and fix hint. Catches tautological or constant assertions, tests with no assertion, assertions on stubs, hard-coded sleeps, swallowed exceptions, duplicate bodies and more. Paths are relative to the repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository root to run in; defaults to TOOLKIT_REPO | |
| paths | No | Files or directories to lint, relative to the repository | |
| config | No | Path to a .tql.yaml configuration file | |
| failOn | No | Severity at which the linter reports failure (its exit code), if any |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| failed | Yes | ||
| summary | Yes | ||
| findings | Yes |