jacobmendoza / rspec-tree-runner

RSpec runner and files analyzer for Atom editor
https://atom.io/packages/rspec-tree-runner
MIT License
9 stars 2 forks source link

Add 'run single test' feature (issue #7) #8

Closed jmorais closed 9 years ago

jmorais commented 9 years ago

What I did:

to run a single test, we just need to pass to rspec command a line number. So, I copied the runTests methods and created a runSingleTest that get the current cursor (lines 27 and 91 from plugin-state) and then run rspec command with parameters @specFileToAnalyze + ":" + @specRowToAnalyze (line 95 of plugin-state).

I also added 'scenario' and 'feature' on the AstParser, so capybara specs will be parsed.