slop/focused-tests
No focused tests are committed
| Severity | error |
| Tiers | all |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.1.0 |
| Selected by | fleetlint-recommended@v0.1.0 |
Requirement
No test is marked to run alone: fdescribe, fit and .only in JavaScript and TypeScript tests, solo: true in Dart tests, fit, fdescribe, fcontext and focus: true in RSpec. Code outside test files is not read, so a function that happens to be called fit is not a finding.
Why
A focused test silently disables every other test in the suite while CI stays green.
Check
For each item in:
codegrep("test", r'\b(fdescribe|fit|describe\.only|it\.only|test\.only|context\.only|suite\.only)\(').filter(m, m.path.matches(r'\.(js|jsx|ts|tsx|mjs|cjs)$')) + codegrep("test", r'\bsolo:\s*true').filter(m, m.path.endsWith(".dart")) + codegrep("test", r'^\s*f(it|describe|context|specify|example|scenario|feature)[\s(]|\bfocus:\s*true|,\s*:focus\b').filter(m, m.path.endsWith(".rb"))falseFix
Remove the focus marker.
Agent instruction: Remove the focus marker and run the whole suite.
See: https://fleetlint.org/baseline/#slop, https://fleetlint.org/slop/#tests
Generated by fleetlint docs from catalog v0.1.0.