This is a plugin for Spyder that integrates popular unit test frameworks. It allows you to run tests and view the results.
This is a work in progress. It is useable, but only the basic functionality is implemented at the moment. The plugin supports the py.test and nose testing frameworks.
See https://github.com/spyder-ide/spyder/wiki/User-plugins but in short, the following command installs the development version of the unittest plugin:
pip install git+git://github.com/spyder-ide/spyder-unittest.git
The plugin is not yet included in PyPI.
You need to have the following installed in order to run the unittest plugin.
- Spyder (obviously), at least version 3.0
- the testing framework that you will be using: py.test and/or nose
The plugin adds an item
Run unit tests to the
Run menu in Spyder.
Click on this to run the unit tests. After you specify the testing framework
and the directory under which the tests are stored, the tests are run.
Unit testing window pane (displayed at the top of this file) will pop up
with the results.
If you want to run tests in a different directory or switch testing
Configure in the Options menu (cogwheel icon),
which is located in the upper right corner of the
Unit testing pane.