Skip to content

[codex] document out-of-line test module convention#25682

Merged
anp-oai merged 1 commit into
mainfrom
agents-md-prefer-out-of-line-tests
Jun 1, 2026
Merged

[codex] document out-of-line test module convention#25682
anp-oai merged 1 commit into
mainfrom
agents-md-prefer-out-of-line-tests

Conversation

@anp-oai
Copy link
Copy Markdown
Collaborator

@anp-oai anp-oai commented Jun 1, 2026

Why

New unit test modules should follow one consistent layout so implementation files stay focused and test suites remain easy to locate, without creating cleanup churn in existing inline test modules.

What changed

  • Added AGENTS.md guidance requiring new test modules to use separate sibling *_tests.rs files with an explicit #[path = "..._tests.rs"] attribute.
  • Clarified that existing inline #[cfg(test)] mod tests { ... } modules should not be moved solely to follow the new convention.

Validation

  • Ran git diff --check.

@anp-oai anp-oai marked this pull request as ready for review June 1, 2026 20:24
@anp-oai anp-oai requested a review from bolinfest June 1, 2026 20:24
@anp-oai anp-oai merged commit a29a5b0 into main Jun 1, 2026
31 checks passed
@anp-oai anp-oai deleted the agents-md-prefer-out-of-line-tests branch June 1, 2026 20:36
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants