fcoury / atom-rspec

Atom RSpec runner package
MIT License
69 stars 42 forks source link

Run spec from code file #69

Open dkniffin opened 9 years ago

dkniffin commented 9 years ago

I'd like to be able to press the hotkey for "run test" from the code that I'm writing (not the spec file), and have it run the related test for that code.

Eg: if I'm working in dog.rb, I'd like to able to run dog_spec.rb (which could complete to spec/dog_spec.rb, or maybe ../../spec/models/dog_spec.rb).

dcarral commented 9 years ago

@dkniffin: Not exactly what you're looking for, but you could use ruby-test-switcher to help you doing that with two keystrokes.

Integrating its functionality with some test runners (like atom-rspec) is something I want to do. This way you could run the associated test file with a single keystroke instead of two ;)

matugm commented 8 years ago

You can do this running your test once and then using the 'Run last' feature.