Skip to content

docs: add one-suite-method-per-function test rule#224

Closed
retr0h wants to merge 1 commit intomainfrom
docs/test-consolidation-rule
Closed

docs: add one-suite-method-per-function test rule#224
retr0h wants to merge 1 commit intomainfrom
docs/test-consolidation-rule

Conversation

@retr0h
Copy link
Collaborator

@retr0h retr0h commented Mar 6, 2026

Summary

  • Add explicit rule to CLAUDE.md and docs/development.md: one suite method per function under test
  • All scenarios (success, errors, edge cases) belong as rows in a single table-driven test

🤖 Generated with Claude Code

Clarify that all scenarios for a function (success, errors, edge cases)
belong as rows in a single table-driven test — never split into separate
TestFoo, TestFooError, TestFooNilResponse methods.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Thank you for contributing to this project! 😊🕹️

@retr0h retr0h closed this Mar 6, 2026
@retr0h retr0h deleted the docs/test-consolidation-rule branch March 6, 2026 00:20
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #224   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         157      157           
  Lines        5293     5293           
=======================================
  Hits         5292     5292           
  Misses          1        1           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04438c7...745c994. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant