A plugin for Spyder to run tests and view the results
Latest commit 270aff0 Jan 19, 2017 @jitseniesen jitseniesen committed on GitHub List dependencies in README
Fixes #45



Build Status

Build Status Build status CircleCI Coverage Status Code Issues Scrutinizer Code Quality

Project information

Join the chat at https://gitter.im/spyder-ide/public



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
  • exml
  • the testing framework that you will be using: py.test and/or nose

In order to run the tests distributed with this plugin, you need nose, py.test and pytest-qt. If you use Python 2, you also need mock.


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. The 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 frameworks, click Configure in the Options menu (cogwheel icon), which is located in the upper right corner of the Unit testing pane.