Shopify / ruby-lsp

An opinionated language server for Ruby
https://shopify.github.io/ruby-lsp/
MIT License
1.31k stars 113 forks source link

Use ancestors to determine test framework in code lens #1334

Open vinistock opened 3 months ago

vinistock commented 3 months ago

Depends on #1333

We currently try to determine the test framework based on dependencies. This is an okay approach, but once we have ancestors available we can be a lot more accurate.

We can check if a test inherits from Minitest::Test or Test::Unit::TestCase and then decide based on that - ideally with a fallback if we can't determine the framework for whatever reason.

andyw8 commented 3 months ago

That would be great.

github-actions[bot] commented 1 month ago

This issue is being marked as stale because there was no activity in the last 2 months