def test_crash_course_with_pytest()
summary
Covers concrete pytest mechanics: project setup, running tests, pytest.raises for exception checks, fixture-based setup/teardown, and parameterized tests that expand one function into multiple cases; demonstrates assertion introspection showing variable values on failure and shows how to generate JUnit/XML and HTML reports plus coverage and parallel runs with xdist. Hands-on live coding builds a test project from scratch, runs passing and failing examples, and includes Playwright-based web API and UI testing.
AI-written summary · about
chapters (11)
- 0:00PyCon and pytest intro
- 3:51pytest tutorial overview
- 11:10First pytest project setup
- 26:10Test failures and assertions
- 44:00Math functions with parameterization
- 1:08:22From mechanics to practical testing
- 1:37:04Accumulator unit testing
- 2:01:46pytest fixtures introduction
- 2:30:41pytest CLI options
- 2:52:20Extending pytest with plugins
- 3:01:41Summary and resources
related talks
30mVisual Testing with PyCharm and pytest
21mDon't just test, my friend, test better
27mWhy I use py.test and maybe you should too
27mPyTest
33mUnit Testing with Pytest
38mTesting for the Terrified: How to Write Tests, Conquer Guilt, and Level Up
28mEgad! How Do We Start Writing Better Tests?
32mAn intro into API testing in Python
