python TDD assistant, runs test command on source file change only
Small tool to help developing in python using Test Driven Dev method. Triggers changes on source or test files and exec a specific command like pytest.
pip install pytdd
start the watcher in current dir or the specified one, all the subdirectories will also be watched.
in the file
[pytdd] patterns = ["*py"] ignore_patterns = ["*#*", "*~"] cmd = ["pytest", "-x", "--ff", "tests/test*py"] force_delay = 300
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.