docs: complete Testing Guidelines section in AGENTS.md#566
Closed
Copilot wants to merge 2 commits into
Closed
Conversation
|
|
Copilot
AI
changed the title
[WIP] Work on TODO: --> (from AGENTS.md)
docs: complete Testing Guidelines section in AGENTS.md
Sep 16, 2025
Copilot stopped work on behalf of
fi3ework due to an error
September 16, 2025 07:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR completes the TODO in the AGENTS.md file by filling in the comprehensive Testing Guidelines section that was previously empty.
What's Added
The new Testing Guidelines section provides complete documentation for contributors working on the rstest project, covering:
Test Organization
packages/core/testsmirroringpackages/core/srce2e/with feature-based structure.test.ts/.test.tsxfile naming conventionsUnit Testing Best Practices
describeblocks,beforeEach/afterEachhooksrs.fn()andrs.mock()Integration/E2E Testing
Additional Guidelines
test.extendusage, inline snapshotspnpm test,pnpm e2e,pnpm typecheck,pnpm lintImplementation Approach
The guidelines were created by analyzing the existing codebase patterns in both unit tests (
packages/core/tests) and e2e tests (e2e/), ensuring the documentation reflects actual practices used throughout the project. All examples are based on real patterns found in the repository.Validation
pnpm lint,pnpm format)This documentation will help new contributors understand the testing approach and maintain consistency across the project.
Created from VS Code via the GitHub Pull Request extension.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.