atom-ruby-test icon indicating copy to clipboard operation
atom-ruby-test copied to clipboard

Run tests for current code file

Open Drenmi opened this issue 9 years ago • 2 comments

I would like to be able to run the tests for a certain file from within that file, without having to switch over to the spec file.

I figure since test directories will commonly mirror the code directory in Ruby projects, we should be able to make an educated guess about where the test file might be. 😀

Drenmi avatar Oct 06 '16 11:10 Drenmi

Cool. What should it do if the current file is neither the test file nor the file under test?

moxley avatar Oct 11 '16 14:10 moxley

@moxley prompt to create the new test file. With a guess of the folder and filename

if rspec detected so app/models/contact.rb would suggest spec/models/contact_spec.rb

rposborne avatar Mar 19 '17 15:03 rposborne