Skip to main content

Nose test method ordering plugin

Project description

Nose order plugin

This plugin allows methods in Nose test classes to run in the order they are
defined, rather than alphabetically.

Note that it is bad practice to rely on test order. If you can avoid it, do so;
otherwise this plugin is for you.

INSTALLATION

From PyPI: pip install nose_order_plugin
From source: setup.py install

USAGE

- Mark the test class with the nose_order_plugin.ordered decorator
- Pass the --with-ordered-tests option to Nose

CAVEATS

- Only plain classes may be ordered. Classes deriving from unittest.TestCase
are incompatible with this plugin.
- The plugin looks at source code lines for ordering; if the methods are not
defined in a single file (or other magic is used), the ordering might not be
precise.
- Test generators are not supported -- they might work, but they're untested.

DEVELOPMENT

The current maintainer is Petr Viktorin <encukou@gmail.com>
The plugin was originally developed as part of the FreeIPA project.

Development is done on Github: github.com/encukou/nose-order-plugin
Issues and pull requests are welcome.

A Github-less workflow is also available:
- git clone github.com/encukou/nose-order-plugin
- Create a set of patches and mail them to the author,
or host a Git branch and send a link to it by e-mail.

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nose-order-plugin, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size nose-order-plugin-0.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page