Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pedro-psb/history-runner

Quickly run any command across different git tags.
https://github.com/pedro-psb/history-runner

Last synced: about 2 months ago
JSON representation

Quickly run any command across different git tags.

Awesome Lists containing this project

README

        

# history-runner

Quick run a command across different git tags of package.

## Usage

```bash
hrun run --tags --
hrun run --tags --case-dir --
```

### Multiple versions

```bash
hrun run . --tags 3.1.12 3.2.2 -- python app.py
hrun run . --tags 3.1.12 3.2.2 -- time python app.py
hrun run . --tags 3.1.12 3.2.2 -- python -m timeit app.py
```

### Multiple cases

To run multiple cases at once, you may create a collection of case directories,
each one containing a single entrypoint file to be executed:

```bash
$ tree
mycases/
case_a/
app.py
additional.toml
case_b/
app.py
$ hrun run 3.1.12 3.2.2 --cases-dir cases --entrypoint app.py
Running v3.1.12 [case_a]
...
Running v3.1.12 [case_b]
...
Running v3.2.2 [case_a]
...
Running v3.2.2 [case_b]
```

## Configuration

- `DATA_FOLDER`: where internal stuff goes (e.g. the managed venvs)
- `DEFAULT_CASES_DIR`: where the program will look for test cases, by default.