skip to navigation
skip to content

Not Logged In

multisuite 0.1.7

run independent nose test suites together

Latest Version: 0.2.3

Run independent nose test suites together as one. This is particulary useful, if you are having suites with different package requirements.

Install

In contrast to other Python tools it is not reasonable to put multisuite in virtualenvs, because its task is to manage virtualenvs for your tests. You can still install it into your system with pip, though:

$ sudo pip install multisuite

If that is not what you want, you can simply download the multisuite.py file from the repository. It is one file and currently contains everything that is needed to run multisuite.

Tutorial

Let's say you have two test suites with a set of requirements each. One contains MONK in version 0.1.1 and the other in version 0.1.2. Therefore it is not possible to run both test suites in the same virtualenv. Manually creating different virtualenvs for different test suites can become quite complex if you have more than two suites like these. Therefore you decide to use multisuite.

Your suites look like this:

root/
  suite_1/
    __init__.py
    requirements.txt # contains monk_tf==0.1.1
    suite.py
  suite_2/
    __init__.py
    requirements.txt # contains monk_tf==0.1.2
    suite.py

The order is important here. Each suite can contain as many files as you want, but it needs to contain at least these three files. The requirements.txt file contains the requirements that this suite needs and the suite.py file contains the test case (or the reference to them). And it needs to contain an __init__.py file because that's how nosetests will recognize them.

If you want to make sure, that you have a correct suite, you can create them with multisuite as well:

$ multisuite makesuite suite_1 suite_2

You can check if your test suites can be found by multisuite:

$ multisuite list
suite_1
suite_2

If a suite is not listed here it was not detected correctly. Please check again if all requirements are met. Now you can run a test suite by itself:

$ multisuite test suite_1 suite_2
...
suite suite_1 ok
suite suite_2 ok

And you can simply run all tests together:

$ multisuite
...
suite suite_1 ok
suite suite_2 ok
 
File Type Py Version Uploaded on Size
multisuite-0.1.7.tar.gz (md5) Source 2014-01-16 3KB
  • Downloads (All Versions):
  • 44 downloads in the last day
  • 1493 downloads in the last week
  • 4402 downloads in the last month