Autotest python code
Project description
An implementation of autotest
for Python inspired by autotest and guard.
autopytest observes file change events and whenever you save a file it runs the appropriate test and upon success runs your entire test suite.
Install
# pip
pip install autopytest
# poetry
poetry add autopytest
Configuration
In your pyproject.toml
add the following.
[tool.autopytest]
source_directories = ["app", "lib"]
test_directory = "tests"
Test Naming
Test naming is currently important. For example given the above configuration if app/models/order.py
is edited we will attempt to locate and run tests/app/models/test_order.py
Usage
cd {project}
autopytest
autopytest {path}
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
autopytest-0.0.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for autopytest-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b790143aab48d8e7ce166b2704dbdd39bcb2bb606f6569c96f6f67f4b134a5 |
|
MD5 | fc79c4ac5b7bd3883d10927747e8f1b8 |
|
BLAKE2b-256 | 3359d5e3fc13e584c0c24588f4120adf3d225363a22e1d298c15e1dedb15ca0e |