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

Minitest Buddy

A Minitest buddy for Sublime Text.

Details

Installs

  • Total 121
  • Win 16
  • Mac 86
  • Linux 19
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 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27
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 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 1 0 0 0 0 0 0 0 0 0 0 0 1
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 0

Readme

Source
raw.​githubusercontent.​com

Minitest Buddy

A small Sublime Text package to boost your productivity when using Minitest.

Features

  • provides command and shortcut for toggling between implementation/test files

Bindings

The default binding for toggling is super+;

{
  "keys": ["super+;"],
  "command": "minitest_toggle"
}

You can change it to whatever you want by adding the following snippet to your Keybindings file.

{
  "keys": ["ctrl+alt+down"],
  "command": "minitest_toggle"
}

Ps: super is command on mac

Installation

Package Control

  1. Open the Command Palette (Super+Shift+p) and choose “*Install Package*”
  2. Select “*Minitest Buddy*” and press Enter

Using Git

  1. Change to your Sublime Text Packages directory
  2. Clone repository git clone https://github.com/glaucocustodio/minitest-buddy-for-sublime-text.git 'Minitest Buddy'

How it works

project/
  - foo.rb
  test/
    - test_foo.rb

Once the toggle command is hit this package will figure whether or not the current file is a test or a implementation file. This is done by checking if the file name starts with test_.

Current file is a implementation file

If it is a implementation file (foo.rb), the package will look for any test_foo.rb inside the test directory.

Current file is a test file

If it is a test file (test_foo.rb), the package will look for any foo.rb inside the project directory.

Multiple files found

If more than one file is found, a quick panel will appear so you can choose the one you want to open.

Similar packages

License

The gem is available as open source under the terms of the MIT License.