Python Testing with pytest
Brian Okken
Published 1998
Do less work when testing your Python code, but be just as expressive, just as elegant, and just as readable. The pytest testing framework helps you write tests quickly and keep them readable and maintainable - with no boilerplate code.
Score based on developer article recommendations — not sales data or reviews.
🟢 Developer Verdict
Master pytest with this practical guide, enabling Python developers to write efficient, readable, and maintainable tests with minimal boilerplate.
Read this if
- ✓ You want to reduce boilerplate in your Python test suite.
- ✓ You are new to pytest and need a practical, hands-on introduction.
- ✓ You are considering migrating from `unittest` to `pytest`.
Skip this for now if
- ✗ You are testing applications written in languages other than Python.
- ✗ You seek a deep dive into general software testing theory or patterns.
- ✗ You already have extensive experience writing tests with pytest.
📊 Why Developers Recommend
It improves testing skills and software quality practices.
Referenced by multiple developers, suggesting consistent practical value.
Valued for its focused, efficient approach — delivering key insights without unnecessary padding.
💬 What Developers Say
"I was reading Python Testing with pytest and convinced the Senior Engineer to let me bring pytest into our project."
— alysivji · Testing 101: Introduction to Testing · Oct 23, 2018
"PyTest is my goto testing framework in python as it is easy to learn and has lesser boilerplate code compared to the default installed **unittest** library."
— steelwolf180 · Building Restful API with Flask, Postman & PyTest - Part 1(Read Time: 6 Mins) · Jan 6, 2019
"Slowly but surely I started to learn about TDD through reading books like [Clean Code][1] and [Test-driven development with Python][2], [Python Testing with PyTest][3]."
— steelwolf180 · Test-Driven Development with PyTest - Part 1 · Sep 29, 2019
Based on 8 developer article mentions
👤 Who Should Read This
Best for
- • Developers who want to write better code
Explore Similar Books
More books in similar categories — browse to discover your next read.
Testing Computer Software
Cem Kaner, Jack Falk, Hung Q. Nguyen
View →
Unit Testing Principles, Practices, and Patterns
Vladimir Khorikov
View →
Test Driven
Lasse Koskela
View →
Pragmatic Unit Testing with JUnit in Java 8
Jeff Langr, Andy Hunt, Dave Thomas
View →
Code Complete
Steve McConnell
View →
Brian Okken
Mentioned in 8 articles · #293 overall
As an Amazon Associate, we earn from qualifying purchases.
Recommended in 8 Articles
Building Restful API with Flask, Postman & PyTest - Part 1(Read Time: 6 Mins)
Building Restful API with Flask, Postman & PyTest - Part 3 (Read Time: 20 Mins)
Lesson In Adopting Test Driven Development (TDD)
Podcast for Developers In Startups
Test-Driven Development with PyTest - Part 1
3 Tips to be Effective In Pycharm
Test-Driven Development with PyTest - Part 2
Testing 101: Introduction to Testing
Score Trend
Last 90 Days
Articles
0
vs prev 90d
0
All Time
Unique authors
2
Total mentions
8