Spec Focuser
Sublime Text plugin for toggling focus on currently selected spec
Details
Installs
- Total 284
- Win 82
- Mac 161
- Linux 41
Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
sublime-spec-focuser
Sublime Text plugin for toggling focus on currently selected spec.
http://stackoverflow.com/questions/5069677/how-do-i-run-only-specific-tests-in-rspec
NOTE: This is NOT a Sublime plugin for yet-another Rspec runner. This plugin assumes you use a existing continuous testing framework (ex: guard) to act as your test-runner. This is a much more stable solution than trying to run Rspec from within the context of SublimeText.
Features
- searches for closest defined spec
- adds
:focus
configuration to closestit
,context
,feature
, ordescribe
block - shortcut for toggling focus on currently highlighted spec (
CMD+ALT+CTRL+F
) - re-runnable to remove the focus keywords after complete
- clears all
:focus
tags from the current file - shortcut for clearing focus tags on current file (
CMD+ALT+CTRL+C
) - ability to use the “old style”
focus: true
configuration
Installation
Install via the great Package Control Plugin Manager
Usage
Add :focus
tag
* Open control panel (ex: CMD+SHIFT+P)
* select “Toggle Focus on currently selected spec” command
* :focus
will be automatically added to the currently selected spec
* Re-run command to remove the focus keywords
Clear all :focus
tags from the current file
* Open control panel (ex: CMD+SHIFT+P)
* select “Remove all focus tags from current file” command
* all instances of :focus
will be removed from the current file
Use focus: true
instead of the new :focus
syntax
* Add "spec_focus_old_style": true
to your preferences file