joeyespo / pytest-watch

Local continuous test runner with pytest and watchdog.
MIT License
737 stars 52 forks source link

Add support for 'testpaths' and 'watchpaths' options in the ini file. #110

Open wouter-vdb opened 4 years ago

wouter-vdb commented 4 years ago

These options are only considered when no directories were provided in the command. When both testpaths and watchpaths are provided then the former are provided to pytest while the latter are watched. When only the testpaths are provided then these are both watched and passed to pytest. When only the watchpaths are provided then these paths are watched but not passed to pytest, allowing it to pick up the testpaths provided in the [pytest] section.