Command line automation tool in pure Python
Project description
Detox jar
Command line automation tool in pure Python
How to use
- Describe jobs as tables in a detox.toml file inside the root directory of your project
[test]
description = "test project"
dependencies = ["pytest", "pytest-cov"]
commands = "pytest -vv --disable-warnings -s --cache-clear"
- description and dependencies could be optional but not commands
[no-deps]
commands = "echo 'Hello world'"
- dependencies and commands could be strings or (in case of more than one) a list of strings
commands = ["ruff check --fix", "ruff format --line-length=100 ."]
- You could provide a [run] table inside the toml file with a 'suite' - list of selected jobs to run
[run]
suite = ["lint", "format", "test"]
- Run the tool in the terminal with a simple 'detox' command
$ detox
(logs omitted...)
$ All jobs succeeded! ['lint', 'format', 'test']
Detoxing took: 14.088007061000098
- In case of failing jobs you get general stats
(logs omitted...)
$ Unsuccessful detoxing took: 13.532951637999759
Failed jobs: ['format']
Successful jobs: ['lint', 'test']
or
$ Unsuccessful detoxing took: 8.48367640699962
Failed jobs: ['format']
Successful jobs: ['lint']
Skipped jobs: ['test']
- You could run specific jobs in the command line
$ detox -j lint
or a list of jobs
$ detox -j lint format
NB: If there is a [run] table in the toml file the jobs specified in the command line take precedence
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
detox_jar-1.0.3.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for detox_jar-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3753050acff6be3b3300c1c7bf1bcc86ab49d9d483a5cadb169bf90149c3ba75 |
|
MD5 | a9ad42068f03c8647a0f92ab24a49644 |
|
BLAKE2b-256 | c146630610fafe58b7c466432a03e4102fe1b5f4806f61c248ad8f7d9b935ca3 |