ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Spec Focuser

by wireframe ALL

Sublime Text plugin for toggling focus on currently selected spec

Details

  • 2017.02.08.17.16.46
  • github.​com
  • github.​com
  • 8 years ago
  • 2 hours ago
  • 11 years ago

Installs

  • Total 284
  • Win 82
  • Mac 161
  • Linux 41
Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2
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 1 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 closest it, context, feature, or describe 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