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

Installs

  • Total 285
  • Win 83
  • Mac 161
  • Linux 41
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 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17
Windows 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 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 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