Pytest: Rapid Simple Testing
summary
Pytest replaces unittest boilerplate with real examples: assert introspection shows actual values on failure, parametrize fixtures run many cases cleanly, fixtures use yield for setup/teardown and support scoping, and built‑in helpers include tmp_path/py.path and monkeypatch. Plugins shown include pytest-cov, pytest-bdd, xdist and CI timeouts, and a custom plugin that spawns a browser subprocess plus a test webserver to run end‑to‑end checks. Pytest runs existing unittest and nose suites so migration can be incremental.
AI-written summary · about
