Software testing seems to get a lot of attention these days as people try to keep AI coding agents from breaking what they already built.
If you're interested in diving into Python testing, check out Ned Batchelder's blog. He's part of the Python core team and the author of coverage. He has written a lot about Python testing, with around 50 blog posts:
https://nedbatchelder.com/blog/tag/testing
Here is my arbitrary selection:
- https://nedbatchelder.com/blog/201206/tldw_stop_mocking_start_testing
- https://nedbatchelder.com/blog/201908/why_your_mock_doesnt_work
- https://nedbatchelder.com/blog/202202/why_your_mock_still_doesnt_work
- https://nedbatchelder.com/blog/202508/starting_with_pytests_parametrize
- https://nedbatchelder.com/blog/202511/why_your_mock_breaks_later
- https://nedbatchelder.com/blog/202512/generating_data_shapes_with_hypothesis
If you have other references on Python testing, please share them in the comments 🙏