Skip to main content

Run commands until it fails

Project description

[![License](]( [![Build](](

# Basic tool to run commands in loop

This tool was intended to help QA guy like me with flaky tests, buy either measuring the “flakyness” of the test, or run it until it fails to debug it.

## Usage

Let’s say your test command is run test

### Debug

You want to run a test untils it fails to debug it, and you know it may take a while: ` $ looper --max-tries 0 --stop-on-first-fail "run test" `

max-tries to 0, means that there is no limit to the number of times a test can sucessfully run

### Measure

You want to approximately the failing rate of a test of out 1000 runs:

` $ looper --max-tries 1000 "run test" `

At the end you will have a sumary

## Installation

pip install –user py-loop

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

py-loop-0.1.3.tar.gz (3.0 kB view hashes)

Uploaded source

Built Distribution

py_loop-0.1.3-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page