Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

A plugin for python-nose which locks test execution and doesn't allow to run them in parallel from two terminals.

Project description

changelog

This is a plugin for python-nose which locks test execution and doesn’t allow to run them in parallel from two terminals.

You could want this behaviour, when parallel tests will interfer for some reason. This could be because they go into one database or have other side effects which hard to isolate.

Usage

Install via pip install nose-lock, then run tests with argument --with-lock.

By default, lock is created as /tmp/<cur-dir-name>.lock file, but you could override this behaviour using optional parameter --lock-file:

nosetests --with-lock --lock-file /tmp/blah-minor

Hack it

Fork the project at GitHub. Don’t forget to send a pull request or file an issue.

Project details


Download files

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

Files for nose-lock, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size nose-lock-0.2.3.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page