Skip to content

Docs | Testing guide, and README, CLAUDE.md and CONTRIBUTING brought up to date - #392

Merged
diego-ojeda-binbash merged 1 commit into
masterfrom
feature/testing-docs
Nov 27, 2026
Merged

diego-ojeda-binbash merged 1 commit into
masterfrom
feature/testing-docs

Conversation

@diego-ojeda-binbash

Copy link
Copy Markdown
Contributor

Part of #346: the docs update.

What

  • docs/testing.md (new): the testing guide.
    • each suite (unit, CLI, properties, contract, golden files, bats, ref-arch E2E, mutation): what it checks, what it doesn't, and its CI job (required or not)
    • where a new test goes: the cheapest level that catches the bug
    • how to refresh the ref-arch and template snapshots and the golden files
    • what mutation testing is and how to read it
  • README: "Running Tests" keeps the commands and links the guide. The snapshot details moved to the guide.
  • CLAUDE.md:
    • links the guide, adds the contract and golden commands, and the testing rules (the cheapest level, the Stubber, exit codes, the threat model)
    • fixed: the coverage command measured the whole repo (--cov=./) instead of leverage/
    • fixed: the SSO token path was the old one (~/.aws/sso/cache/<role> → ~/.aws/<project>/sso/cache/token)
  • CONTRIBUTING: the PR process described Docker-era rules: "container parameters", bumping versions by hand, two sign-offs. It now lists the title prefixes, tests, the required checks, the threat model checklist and one approval (what master's protection requires).
  • PR template: a "Tests" section.

Not in this PR: the user docs

leverage.binbash.co (le-ref-architecture-doc) doesn't describe 3 behaviors that changed in #346:

  1. the backend key format: the legacy base-/tools- prefixes and the two conventions validate-layout accepts
  2. that validate-layout now exits with an error when a check fails (Fix | tf: init --layers backend key per layer, validate-layout exit code + error path tests #385)
  3. that a leverage run value can contain = (Fix | Property-based tests (hypothesis) and the 4 bugs they found #386)

They belong in a PR to that repo.

🤖 Generated with Claude Code

…up to date

- docs/testing.md: what each suite checks and doesn't (unit, CLI, properties,
  contract, golden files, bats, ref-arch E2E, mutation), its CI job, where a
  new test goes, and how to refresh the ref-arch and template snapshots.
- README: Running Tests keeps the commands and links the guide.
- CLAUDE.md: the guide, the contract/golden commands and the testing rules;
  the coverage command it listed measured the whole repo, and the SSO token
  path was the pre-project one.
- CONTRIBUTING: the PR process described Docker-era rules (container
  parameters, manual version bumps, two sign-offs); now title prefixes, tests,
  required checks, the threat model checklist and one approval.
- PR template: a Tests section.

Part of #346.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d6f8c85a-06ad-4f3a-b5df-bb6eeb4883ef
Commits

Reviewing files that changed from the base of the PR and between 2f4b258 and a1de036.

Files selected for processing: 5

  • .github/PULL_REQUEST_TEMPLATE.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • README.md
  • docs/testing.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added documentation Improvements or additions to documentation patch labels Nov 27, 2026
@diego-ojeda-binbash diego-ojeda-binbash self-assigned this Nov 27, 2026
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 46056101477

Coverage remained the same at 85.443%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 4496
Covered Lines: 3920
Line Coverage: 87.19%
Relevant Branches: 1288
Covered Branches: 1022
Branch Coverage: 79.35%
Branches in Coverage %: Yes
Coverage Strength: 0.87 hits per line

💛 - Coveralls

@diego-ojeda-binbash
diego-ojeda-binbash merged commit d5cf5da into master Nov 27, 2026
27 checks passed
@diego-ojeda-binbash
diego-ojeda-binbash deleted the feature/testing-docs branch November 27, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants