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

Installs

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