connorshea / vscode-ruby-test-adapter

A Ruby test adapter extension for the VS Code Test Explorer
https://marketplace.visualstudio.com/items?itemName=connorshea.vscode-ruby-test-adapter
MIT License
85 stars 52 forks source link

Palette command to run spec file from app source file #29

Open multiplegeorges opened 5 years ago

multiplegeorges commented 5 years ago

Hey,

First off, great extension!

I think the usability of the extension would be helped by adding a command to the command palette:

Open rspec/test file from app source file

For example, when viewing app/controllers/users_controller.rb, open command palette and select "Open associated test file in new tab" and it should open spec/controllers/users_controller_spec.rb in a new tab and auto-run the tests in that file.

The inverse (open source file from test file) would also be helpful.

Cheers, Georges