Skip to content

jeremad/looper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5e37a46 · Oct 9, 2024

History

98 Commits
Oct 9, 2024
Apr 30, 2024
Nov 22, 2023
Feb 28, 2019
Feb 28, 2019
Feb 15, 2019
Nov 26, 2019
Jan 25, 2022
Oct 9, 2024
Oct 9, 2024
Oct 4, 2022
Feb 15, 2019

Repository files navigation

License codecov

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