Skip to main content

Distributed tests planner plugin for pytest testing framework

Project description

Splinter plugin for the py.test runner

https://api.travis-ci.org/pytest-dev/pytest-cloud.png https://pypip.in/v/pytest-cloud/badge.png https://coveralls.io/repos/pytest-dev/pytest-cloud/badge.png?branch=master Documentation Status

Install pytest-cloud

pip install pytest-cloud

Features

The plugin provides an easy way of running tests amoung several test nodes (slaves). Uses the great pytest-xdist plugin for actual distributed run. When used, it will automatically detect capabilites of given node(s) and run only the number of test processes it is able to handle. ATM only ssh transport is supported. So ensure that you have at least public key auth enabled to your test nodes from the master node (where py.test is executed).

Command-line options

  • –cloud-node

    Node host name to run tests on. Multiple allowed.

  • –cloud-virtualenv-path

    Optional relative path to the virtualenv to be used on the remote test nodes.

  • –cloud-mem-per-process

    Optional amount of memory roughly needed for test process, in megabytes. Will be used to calculate amount of test processes per node, getting the free memory, dividing it for the memory per process needed, and getting the minimum of that value and the number of CPU cores of the test node.

  • –cloud-max-processes

    Optional maximum number of processes per test node. Overrides from above the calculated number of processes using memory and number of CPU cores.

Example

py.test tests/ --cloud-node=10.0.120.{1..40} --cloud-mem-per-process=1000 --cloud-virtualenv-path=.env/ --rsyncdir=. --rsyncdir=.env

Contact

If you have questions, bug reports, suggestions, etc. please create an issue on the GitHub project page.

License

This software is licensed under the MIT license

See License file

© 2015 Anatoly Bubenkov and others.

Changelog

1.0.0

  • Initial public release

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

pytest-cloud-1.0.0.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file pytest-cloud-1.0.0.tar.gz.

File metadata

  • Download URL: pytest-cloud-1.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-cloud-1.0.0.tar.gz
Algorithm Hash digest
SHA256 953399aa77080bdaa327a97b02e6434375ecf297ffc78970c9780532754d1a81
MD5 d8dbe83dd611659f2e9c5be5a295e324
BLAKE2b-256 c6ea8ab74a80f6e0381741d4835dd1c2942ece7888a507b7fd03675f5e71219a

See more details on using hashes here.

Supported by

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