A scenario runner written in python
Project description
Scenario Runner (sr)
You could use a shell script, it's more advanced or you could use scenario runner.
Install with
pip install scenario-runner
Create a file named 'sr.yml' in a directory where you want it to run.
scenarios:
run_my_tests:
description: 'Run all my tests'
actions:
- docker-compose:
compose_files:
- 'docker/docker-compose.yml'
- 'docker/test.docker-compose.yml'
cmd: up
args:
- '--force-recreate'
- '-d'
- '--abort-on-container-exit'
- '--exit-code-from'
- 'test'
Then you run the scenario with sr run_my_tests
Structure of sr.yml
key: value
scenarios: # all the scenarios with name as key
scenario_name:
description: 'Describe the scenario. This can be viewed by running sr --help
actions: # all the actions in the scenario as a list
- action_type:
...
Action types
docker-compose
| key | description |
|---|---|
| compose_files | All compose files used when running docker-compose. Can be specified in action, scenario or globally |
| cmd | docker-compose [cmd] to run. See docker-compose --help for available commands |
| args | Arguments for docker-compose after cmd. Can be a list of strings or string |
shell
| key | description |
|---|---|
| cmd | cmd to run |
| args | args for cmd. Can be a list of strings or string |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scenario-runner-0.0.6.tar.gz.
File metadata
- Download URL: scenario-runner-0.0.6.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54eb856f2ae4e0056ae95f4d25e39baa7e45248af7d86bd1d8e4cff7fa84a277
|
|
| MD5 |
e018ebe78cf6d13544f02ba9cb3dbc24
|
|
| BLAKE2b-256 |
7949f6fda4ae3bae1e678ef8a6aec91dbdab4b6c9fe3b109ec4fbf2b7f96897f
|
File details
Details for the file scenario_runner-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: scenario_runner-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
160869d17f638cb17859977671a2a08d817f1f97bb7422c8162ba8c6e8881653
|
|
| MD5 |
8d41ff4de195d0c5675a45deffe272e9
|
|
| BLAKE2b-256 |
e78c104c8fbb0d20675c7275acfe3197543d7f9fa5a246290a7f950f8626c102
|