This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A plugin to help split up your tests runs across multiple machines.

In an ideal world, test suites should be fast enough that they can be run locally on a single machine without extra engineering. This plugin is there to help when you can’t make that to happen.

This won’t help you run tests in parallel on one machine in different threads; that’s what the built-in multiprocess plugin is for.

This will help you split up your test suites so that you can run the suites on multiple machines and not have the same test run twice - think Jenkins with the multijob plugin, or CI services like CircleCI.

Install

pip install nose-parallel

Usage

On each machine:

  1. Export environment variables NODE_TOTAL (the number of machines on which the suite will be run) and and NODE_INDEX (the 0-based index of the current machine)
  2. Run nosetests with the --with-parallel flag
  3. Do something to join the results from all the machines back together

For example, this is how we’d run nosetests on the second machine in a four-machine testing cluster:

NODE_TOTAL=4 NODE_INDEX=1 nosetests --with-parallel

If you don’t set those variables, nose-parallel will do the right thing and run all your tests. The CircleCI versions of the environment variables (CIRCLE_NODE_TOTAL and CIRCLE_NODE_INDEX, respectively) are also natively supported.

If you want to further randomize the distribution of tests, so that the same test cases don’t always run together on the same node, you may use the --parallel-salt option to specify a salt value (e.g. a build number, the day of the month). The salt must be the same on each node during a parallel build, otherwise some test cases might be missed.

Alternatively you can set environment variable NOSE_PARALLEL_SALT. And, as an added convenience, you can change this environment variable to something your build environment already configures for each build with the option --parallel-salt-env. E.g. on CircleCI you could do:

nosetests --with-parallel --with-parallel-salt-env CIRCLE_BUILD_NUM

License

nose-parallel is released under the MIT license.

Contribute

  • Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  • Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
  • Send a pull request and bug the maintainer until it gets merged and published.
  • Add yourself to the authors list in setup.py

Thanks To

Release History

Release History

0.2.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
nose_parallel-0.2.0-py2-none-any.whl (6.4 kB) Copy SHA256 Checksum SHA256 2.7 Wheel May 2, 2016
nose-parallel-0.2.0.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source May 2, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting