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

Test

by gerardroche ST3

Run your tests at the speed of thought.

Labels testing, tdd

Details

Installs

  • Total 224
  • Win 126
  • OS X 65
  • Linux 33
Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7
Windows 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
OS X 0 0 0 0 0 0 1 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 2 0 0 0 0 0 0 2
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 1 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

Test

Leverage the power of Sublime Text testing plugins.

Minimum Sublime Version Latest Stable Version GitHub stars Downloads Author

Screenshot

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

USAGE

Supported plugins

Language Framework Package
PHP PHPUnit PHPUnitKit
Mixed Sublime Text UnitTesting
Mixed Sublime Text ColorSchemeUnit

Please open an issue to add support for your testing plugin.

Commands

Command Palette Command Description
:TestSuite test_suite Run test suite of the current file.
:TestFile test_file Run tests for the current file. If the current file is not a test file, it runs tests of the test file for the current file.
:TestNearest test_nearest Run a test nearest to the cursor (supports multiple selections). If the current file is not a test file, it runs tests of the test file for the current file.
:TestLast test_last Run the last test.
:TestVisit test_visit Open the last run test in the current window (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 test_switch Splits the window and puts nearest test case and class under test side by side.
:TestResults test_results Show the test results panel.
:TestCancel test_cancel Cancels current test run.

Key Bindings

Add your preferred key bindings: Menu > Preferences > Key Bindings

[
    { "keys": ["ctrl+shift+a"], "command": "test_suite" },
    { "keys": ["ctrl+shift+f"], "command": "test_file" },
    { "keys": ["ctrl+shift+n"], "command": "test_nearest" },
    { "keys": ["ctrl+shift+l"], "command": "test_last" },
    { "keys": ["ctrl+shift+v"], "command": "test_visit" },
    { "keys": ["ctrl+shift+s"], "command": "test_switch" },
    { "keys": ["ctrl+shift+c"], "command": "test_cancel" },
    { "keys": ["ctrl+shift+r"], "command": "test_results" },
]
Key Description
F4 Jump to Next Failure
Shift+F4 Jump to Previous Failure

LICENSE

Released under the BSD 3-Clause License.