python-nosetests

Run python nosetests from within the atom editor

thschenk

10,898

7

0.2.0

MIT

GitHub

Python Nosetests

Run python nosetests from within the Atom editor.

Screenshot

Installation

This package depends on the nose and nosetests-json-extended python plugins. They can be installed with:

sudo pip install nose nosetests-json-extended

Usage

When running nosetests for the first time on a project, go to the project root and run the tests from the command line:

(python2) nosetests --with-json-extended
(python3) python3 -m nose --with-json-extended

This will generate a file nosetests.json which contains, besides the test results, also the required information to re-run the tests.

In the Atom editor, open a file that belongs to the project and go to:

Menu -> Packages -> Python Nosetests -> Run   (Or press F5)

The Python Nosetests package will now locate the nosetests.json file, run the tests again and show the results.

When trying this package, this python-testproject can be used to generate some succeeding, failing and erroneous test cases.

Roadmap