TestChooser
Sublime Text 2 Plugin for easily running RSpec and Cucumber tests in iTerm
Details
Installs
- Total 393
- Win 53
- Mac 258
- Linux 82
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
TestChooser
A Sublime Text 2 plugin for quickly executing a RSpec & Cucumber commands in iTerm or Apple's Terminal.
Description
It first checks the current file to see that it is either a “feature” or “spec” file. If so, it reads the file looking for “it”, “describe”, “context” or “scenario” keywords that are at the beginning of a line.
It then displays those lines for you to choose from. Once you select an item from the list and click “Run”, the test is executed in iTerm or Apple's Terminal, whichever you have set in preferences. The default is iTerm.
Instructions
This Plugin
Install this plugin using Package Control, a package manager for Sublime Text 2.
Key Bindings
There is a menu item to access the key binding for TestChooser.
“Preferences”->“Package Settings”->“TestChooser”->“Key Bindings - User”
This one uses a two-key combination. The “super” is the “command” key on a Mac.
{ "keys": ["super+y", "super+y"], "command": "test_chooser" }
Settings
“Preferences”->“Package Settings”->“TestChooser”->“Settings - User”
Choose your terminal. The default is iTerm but you can also choose Apple's Terminal by using the word “Terminal”
"terminal": "iTerm"
The search terms used when searching the RSpec and Cucumber files.
"search_terms": ["it", "describe", "context", "Scenario"]
Set the RSpec terminal command.
"rspec_command": "bundle exec rspec --drb"
Set the Cucumber terminal command.
"cucumber_command": "bundle exec cucumber --drb -r features/"
License
Read the license text file included in this package… but it's MIT.
Changelog
Changed the original plugin to now use Package Conrol
Removed py-appscript dependency.