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
  • 32 minutes ago
  • 10 years ago

Installs

  • Total 279
  • Win 81
  • Mac 158
  • Linux 40
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 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10
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 1 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
Linux 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 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