Test
Run your tests at the speed of thought.
Details
Installs
- Total 477
- Win 269
- Mac 129
- Linux 79
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 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 2 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 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 | 3 | 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 |
Linux | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Test
Leverage the power of Sublime Text test runners.
INSTALLATION
Package Control installation
The preferred method of installation is Package Control.
Manual installation
Close Sublime Text, then download or clone this repository to a directory named “Test” in the Sublime Text Packages directory for your platform:
- Linux:
git clone https://github.com/gerardroche/sublime-test.git ~/.config/sublime-text-3/Packages/Test
- OSX:
git clone https://github.com/gerardroche/sublime-test.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Test
- Windows:
git clone https://github.com/gerardroche/sublime-test.git %APPDATA%\Sublime/ Text/ 3/Packages/Test
Commands
These commands are available through the Command Palette. To use the command palette:
- Press
Ctrl+Shift+P
- Select a command
- Press
Enter
command | description |
---|---|
TestSuite |
Runs the whole test suite (if the current file is a test file, runs that framework's test suite). |
TestFile |
In a test file runs all tests in the current file, otherwise runs that file's tests. |
TestNearest |
In a test file runs the test nearest to the cursor, otherwise runs that file's tests. |
TestLast |
Runs the last test. |
TestVisit |
Visits the test file from which you last run your tests (useful when you're trying to make a test pass, and you dive deep into application code and close your test buffer to make more space, and once you've made it pass you want to go back to the test file to write more tests). |
TestSwitch |
In a test file opens the file under test, otherwise opens the test file. |
TestResults |
Opens the test results panel. |
TestCancel |
Cancels the test runner. |
Key Bindings
Add your preferred key bindings via Menu > Preferences > Key Bindings
or use the command palette. To use the command palette:
- Press
Ctrl+Shift+P
- Select the “Preferences: Key Bindings” command
- Press
Enter
{ "keys": ["ctrl+shift+a"], "command": "test_suite" },
{ "keys": ["ctrl+shift+c"], "command": "test_cancel" },
{ "keys": ["ctrl+shift+f"], "command": "test_file" },
{ "keys": ["ctrl+shift+l"], "command": "test_last" },
{ "keys": ["ctrl+shift+n"], "command": "test_nearest" },
{ "keys": ["ctrl+shift+r"], "command": "test_results" }
{ "keys": ["ctrl+shift+s"], "command": "test_switch" },
{ "keys": ["ctrl+shift+v"], "command": "test_visit" },
key | description |
---|---|
F4 |
Jump to Next Failure |
Shift+F4 |
Jump to Previous Failure |
Supported packages
The following test runners are supported:
Language | Package | Test Runners |
---|---|---|
PHP | PHPUnitKit | PHPUnit |
UnitTesting | Sublime Text plugins | |
ColorSchemeUnit | Sublime Text color schemes |
LICENSE
Released under the BSD 3-Clause License.