Skip to main content

Run commands until it fails

Project description

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9c0df6535cb64f03921f3c9bb76c9fba)](https://app.codacy.com/app/jeremad/looper?utm_source=github.com&utm_medium=referral&utm_content=jeremad/looper&utm_campaign=Badge_Grade_Dashboard) [![License](https://img.shields.io/github/license/jeremad/looper.svg)](https://opensource.org/licenses/MIT) [![Build](https://img.shields.io/travis/jeremad/looper/master.svg)](https://travis-ci.org/jeremad/looper) [![codecov](https://codecov.io/gh/jeremad/looper/branch/master/graph/badge.svg)](https://codecov.io/gh/jeremad/looper)

# 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 until 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 find 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.3.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_loop-0.3.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file py-loop-0.3.1.tar.gz.

File metadata

  • Download URL: py-loop-0.3.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.5rc1

File hashes

Hashes for py-loop-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b04bedabde0dbfa3afceb0b6ff22cc3c382f8e51910da45bcf586b65155b4c22
MD5 900f7b7dddb7bc0ef1cc4e7037b67e11
BLAKE2b-256 49e493377b1ee93f6f652c4ce8ccaa419f9e8a3428d0303f2183509ba8875dfd

See more details on using hashes here.

File details

Details for the file py_loop-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: py_loop-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.5rc1

File hashes

Hashes for py_loop-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c70c40d824bbf8a92c91cb6115e80c3705bef6a57aa064eec1d10a12a2166072
MD5 d47711438ffa88d098dbe7e2f2bee640
BLAKE2b-256 d8b9f1e042a8014cfd26535a78c1b81aa29d81d48aa50b9683a5b933e9491d30

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