adamchainz, A #pytest pattern I’ve recently enjoyed using:
- Change some function in a way that needs fixes to call sites.
- Run the whole test suite with pytest.
- Copy the list of failing test IDs from pytest’s summary into a scratch file.
- Fix up the found callers.
- Verify everything fixed by saving the list of tests with: pytest $(cat scratch/testids.txt)
Add comment