Skip to main content

Command line automation tool in pure Python

Project description

Detox jar

Detox jar

Python 3.x PyPI


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


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.1.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

detox_jar-1.0.1-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page