Minitest Buddy
A Minitest buddy for Sublime Text.
Details
Installs
- Total 118
- Win 16
- Mac 83
- Linux 19
Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
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 | 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
- Open the Command Palette (Super+Shift+p) and choose “*Install Package*”
- Select “*Minitest Buddy*” and press Enter
Using Git
- Change to your Sublime Text
Packages
directory - 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.