• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

python-nosetests

Run python nosetests from within the atom editor
  • #python
  • #nosetests
  • #unittest
thschenk
0.2.0 9,856
7
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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

  • Hide traceback items from python unittest module.
  • Provide a way to run nosetests if no nosetests.json is found
  • Create specs.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by