I'm working on a small codebase. I've been asked to make a few updates, and the first couple changes worked OK, however I'm having trouble debugging the latest change. I need to be able to make small updates with confidence.
- Small same file unit and async unit tests should be enough to keep troubleshooting and debugging simple, for now.
- A few infrastructure tests may be useful to catch simple mistakes in my dockerfile.
- I don't think Fuzz tests and API response mocking are needed while this project is so small.
Everything except fuzz tests are runnable from pytest
.
source venv/bin/activate
py-afl-fuzz -m 600 -i fuzzing-inputs/ -o fuzzing-results/ -- python lib/example_fuzzing.py @@
pytest ./
pytest examples/*
examples/example_unit_test_same_file.py
examples/example_test_with_api_response_fixture.py
examples/example_async_test.py # pytest-aio does not require any extra setup
- Auto mocking, spy, stubbing 3rd party libs
- Snapshot testing