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 208
  • Win 118
  • OS X 58
  • Linux 32
Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2
Windows 0 0 0 0 0 1 1 1 0 0 0 0 0 1 0 2 0 0 1 0 0 0 1 1 1 0 0 0 2 1 0 0 0 0 0 0 0 2 0 0 0 1 0 0 0
OS X 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 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.