Skip to content

Conversation

@alexcrocha
Copy link
Contributor

Motivation

This PR addresses and closes #3178 by adding support for Minitest spec style syntax. Previously, our support was limited to the traditional test style syntax.

By adding support for the spec style, we enhance the discoverability of tests in VS Code's Test Explorer panel, improving the developer experience.

Implementation

  • Implemented a listener to create test items for spec style syntax describe and it methods
  • Ensured compatibility with traditional test syntax (def test_)
  • Future PR will refactor to reduce code duplication between listeners

Tests

  • Added tests and fixtures

@alexcrocha alexcrocha added enhancement New feature or request server This pull request should be included in the server gem's release notes labels Feb 20, 2025
@alexcrocha alexcrocha requested a review from a team as a code owner February 20, 2025 23:31
@graphite-app
Copy link

graphite-app bot commented Feb 20, 2025

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.

@andyw8
Copy link
Contributor

andyw8 commented Feb 21, 2025

Let's update the PR title indicate that this applies to test discovery (since we already support spec syntax in other places, such as Code Lens).

@andyw8
Copy link
Contributor

andyw8 commented Feb 21, 2025

I tried this on https://github.com/Shopify/lhm and noticed it shows the spec files but not the tests, can you look into why this is?

@alexcrocha alexcrocha changed the title Add support for Minitest spec style syntax Add test discovery support for Minitest spec style syntax Feb 21, 2025
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@alexcrocha alexcrocha merged commit fed822d into main Feb 27, 2025
43 checks passed
@alexcrocha alexcrocha deleted the ar/spec-test branch February 27, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request 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.

Add support for the Minitest spec style syntax

4 participants