Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds clarifying documentation about the behavior of describe.skip in both English and Chinese documentation files. The key clarification is that while test cases are skipped, the code inside the describe block still executes.
- Added explanation that
describe.skiponly skips test cases, not the entire describe block execution - Updated section titles and descriptions to be more precise about what gets skipped
- Added code examples demonstrating the execution behavior
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| website/docs/zh/api/test-api/describe.mdx | Updated Chinese documentation with clarified behavior and example |
| website/docs/en/api/test-api/describe.mdx | Updated English documentation with clarified behavior and example |
✅ Deploy Preview for rstest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for rstest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
If I want to prevent test code from executing, are there related APIs that can achieve this? Like .todo? |
None at the moment. |
Summary
The
skiptag is only used to skip test cases, and the code inside the describe block will still be executed.Related Links
Checklist