Start Testing in 5 Minutes Flat
summary
Shows how to get a pytest test suite running in minutes using Python 3.8.4 and pytest 6.2.2. Builds a small package named stuff with module accum and class Accumulator.count plus an add method that increments; tests live in tests/test_accum.py and use a pytest fixture named accum to create fresh Accumulator instances. Runs with python -m pytest, discovers test_ files, reports green dots on success and a big F plus failure stack on error; includes links to Test Automation University.
AI-written summary · about
chapters (4)
related talks
06m"Jumpstart Python Testing in 5 Minutes Flat"
27mPyTest
33mUnit Testing with Pytest
29mEgad! How Do We Start Writing (Better) Tests?
03h 02mdef test_crash_course_with_pytest()
30mHow to build a unit testing library from scratch?
28mEgad! How Do We Start Writing Better Tests?
38mTesting for the Terrified: How to Write Tests, Conquer Guilt, and Level Up
