Skip to content

Ignore examples defined in random modules and classes for spec #3521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented May 21, 2025

Motivation

Same as #3512, but for Minitest spec. We need to ignore test invocations or methods defined inside random classes or modules.

Implementation

Followed the same idea of pushing nil for modules, but that involves making some adjustments in how we locate the latest group.

This fix also uncovered another issue, which is that we were always popping from the stack even if a describe is not going to be associated to anything. I fixed that as well.

Automated Tests

Added tests that fail before this.

Copy link
Member Author


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this May 21, 2025
@vinistock vinistock added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels May 21, 2025 — with Graphite App
@vinistock vinistock marked this pull request as ready for review May 21, 2025 21:34
@vinistock vinistock requested a review from a team as a code owner May 21, 2025 21:34
@vinistock vinistock merged commit a4a837b into main May 23, 2025
44 checks passed
@vinistock vinistock deleted the 05-21-ignore_examples_defined_in_random_modules_and_classes_for_spec branch May 23, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants