Testing and Quality Assurance
Test strategies beyond unit tests.
This is an overview — pick a sub-topic below.
Sub-topics (6)
Unit, Integration and End-to-End Testing
Test functions in isolation, components together, and whole user flows.
Mocking and Test Doubles
Replace slow or external dependencies (APIs, hardware, time) with fakes in tests.
Property-Based, Mutation and Fuzz Testing
Generate inputs automatically (Hypothesis), check that tests catch injected bugs (mutmut), and throw random data at parsers (Atheris).
Load, Performance and API Testing
Check behaviour under heavy traffic and verify API contracts.
UI and Acceptance Testing
Automate browsers (Playwright, Selenium) and write behaviour specs (pytest-bdd, behave, Robot Framework).
Hardware-in-the-Loop Testing
Test firmware and devices automatically from Python using real hardware and instruments.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.