Skip to main content

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.

Source Distribution

nose-lock-0.2.3.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file nose-lock-0.2.3.tar.gz.

File metadata

  • Download URL: nose-lock-0.2.3.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nose-lock-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d717c0256c1f3d478b5f6da5461ffb2f7af225088f8fac9e836d731afbf00ff9
MD5 4e0d11fdfea79f34277d6c62bb762ffa
BLAKE2b-256 ad82d86de0393077c73110cbd2b6283c351ed64b3a0e4332f28b452715ad9236

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page