olimorris / neotest-rspec

🧪 Neotest adapter for RSpec. Works in Docker containers too
MIT License
88 stars 25 forks source link

Ensure we're only checking the start of the path #49

Closed pfeiferj closed 1 year ago

pfeiferj commented 1 year ago

Currently the match check can grab a spec path not at the root. I.e. for domains/example/spec/example_spec.rb it will match spec/example_spec.rb and use that spec folder as the root. This can cause the run to use the wrong root path if using something like packwerk. By specifying start of line in the regex we guarantee we are only checking the root spec.

olimorris commented 1 year ago

Great thank you!