Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/encukou/nose-order-plugin
https://github.com/encukou/nose-order-plugin
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/encukou/nose-order-plugin
- Owner: encukou
- License: gpl-3.0
- Created: 2013-08-16T14:00:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-16T14:16:47.000Z (about 11 years ago)
- Last Synced: 2023-03-11T13:19:26.531Z (over 1 year ago)
- Language: Python
- Size: 125 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
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 installUSAGE
- Mark the test class with the nose_order_plugin.ordered decorator
- Pass the --with-ordered-tests option to NoseCAVEATS
- 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
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.