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.
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 arunSingleTest
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.