PythonTest
Sublime Text 3 package for running python unit tests
Details
Installs
- Total 26K
- Win 18K
- Mac 4K
- Linux 5K
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 | 1 | 0 | 3 | 3 | 1 | 0 | 0 | 1 | 1 | 2 | 1 | 0 | 0 | 0 | 1 | 0 | 2 | 1 | 1 | 2 | 1 | 2 | 0 | 0 | 0 | 1 | 2 | 1 | 0 | 4 | 2 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 2 | 2 | 2 |
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 | 3 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 |
Linux | 0 | 0 | 0 | 1 | 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 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
PythonTest
Sublime Text 3 package for running python unit tests.
This first release only comes with built-in support for nose2.
The output coloring is based on the theme and language files from https://github.com/lyapun/sublime-text-2-python-test-runner
Installation
This plugin can be installed using package control, or manually. To install manually, clone this repository inside of your sublime packages directory.
Usage
PythonTest runs python tests and shows the output in an output panel. In the panel, filenames in tracebacks are highlighted, and you can double-click them to go to the file and line mentioned.
Tests may be run individually or in groups.
To run individual tests, in a python unit test module, put a caret in some tests and press Ctrl-c,. to run them. Every test method (or test function) containing a caret point will be run, and only those.
To run all of the tests in a module, ensure the caret is outside of any test method or function and press Ctrl-c,.
To run all of the tests in a project, press Ctrl-c,t while viewing any python source file.
Settings
In the global section of a project file, PythonTest respects the python_interpreter
setting and will use the interpreter path set there to construct command paths when given a relative command path (see below for how to change that).
You can customize the plugin's behavior by adding a python_test
section to a project file. In that section, the following settings may be specified:
command
: “nose2” (default) or the name of or path to a test comman. The test command is executed in a shell, so it may include arguments, for instancepython ./manage.py test
is a validcommand
setting.ignore_interpreter
: False (default). Set to True to ignore thepython_interpreter
setting.working_dir
: project root (default) or the path to the directory where test commands should be executedquiet
: True (default) to hide test command details in outputcolor_scheme
: “light” (default) or “dark” or a.tmTheme
or.hidden-tmTheme
filenamesyntax
: “unittest” (default) or Specify a.tmLanguage
file to set the syntax highlighting language for test output
Project settings example
{
"folders":[
{
"path":"/home/my_user/my_project/"
}
],
"settings":{
"python_test":{
"command":"python ./manage.py test"
}
}
}