Conversation
✅ Deploy Preview for rstest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for a new hideSkippedTestFiles configuration option that allows users to hide logs for test files that are entirely skipped, while still showing the summary statistics. This complements the existing hideSkippedTests option by operating at the file level rather than individual test level.
Changes:
- Added
hideSkippedTestFilesconfiguration option with default valuefalse - Implemented filtering logic in both default and verbose reporters to skip output for skipped test files
- Added CLI flag
--hideSkippedTestFilessupport - Created comprehensive documentation in both English and Chinese
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/core/src/types/config.ts | Added type definitions for the new hideSkippedTestFiles configuration option |
| packages/core/src/config.ts | Added default value for hideSkippedTestFiles in the default configuration |
| packages/core/src/reporter/index.ts | Implemented logic to skip output when hideSkippedTestFiles is enabled and test file status is 'skip' |
| packages/core/src/reporter/verbose.ts | Applied same filtering logic to verbose reporter |
| packages/core/src/cli/commands.ts | Added CLI option for --hideSkippedTestFiles |
| packages/core/src/cli/init.ts | Added support for merging hideSkippedTestFiles from CLI options |
| website/docs/en/config/test/hide-skipped-test-files.mdx | Created English documentation with examples |
| website/docs/zh/config/test/hide-skipped-test-files.mdx | Created Chinese documentation with examples |
| website/docs/en/config/test/_meta.json | Added entry for new documentation page |
| website/docs/zh/config/test/_meta.json | Added entry for new documentation page |
| website/theme/components/ConfigOverview.tsx | Added configuration to overview list |
| e2e/reporter/index.test.ts | Added end-to-end test verifying the feature works correctly |
| e2e/reporter/fixtures/allSkipped.test.ts | Created test fixture with a skipped test |
| packages/core/tests/snapshots/config.test.ts.snap | Updated snapshot to include new configuration option |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Timeless0911
approved these changes
Jan 14, 2026
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.
Summary
Support hide skipped test files logs via
hideSkippedTestFilesconfiguration.By default, Rstest displays logs for all test files.
When you set
hideSkippedTestFilestotrue, Rstest will hide logs for all skipped test files after the test run is complete.The output will look like this:
Related Links
Checklist