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

Test

Leverage the power of Sublime Text testing plugins.

Minimum Sublime Version Latest Stable Version GitHub stars Downloads Author

Screenshot

The following testing plugins are currently supported:

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

To add support for your testing tool please open an issue and I'll do my best to help.

INSTALLATION

Manual installation

  1. Close Sublime Text.
  2. 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
    • OS X: 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
  3. Done!

USAGE

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.

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 bindings that often provided by packages by default:

Key Description
F4 Jump to Next Failure
Shift+F4 Jump to Previous Failure

LICENSE

Released under the BSD 3-Clause License.