Skip to content

O4FDev/autopytest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

For PRs temporarily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.5%
  • Makefile 3.5%