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
  • 7 years ago
  • 42 minutes ago
  • 11 years ago

Installs

  • Total 279
  • Win 81
  • Mac 158
  • Linux 40
May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29
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 1 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 1 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