Keep tests straight-line; branching or computed expectations can hide bugs in the test itself.
Why This Matters
Logic in tests can mirror the bug under test, so a broken test still passes.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.