Minitest Buddy
A Minitest buddy for Sublime Text.
Details
Installs
- Total 126
- Win 18
- Mac 89
- Linux 19
May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
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 | 1 | 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 | 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.