Effective Testing: From Slop to Software (Treading on Python)
Format:
Paperback
En stock
0.56 kg
Sí
Nuevo
Amazon
USA
- Effective TestingWrite Tests That Actually Help You Ship Better Code Testing doesn't have to be painful. With the right approach and tools, your test suite becomes a productivity multiplier—catching bugs early, documenting behavior clearly, and making refactoring safe. Effective Testing is your practical guide to building a modern Python testing workflow. You'll learn pytest from the ground up, master property-based testing with Hypothesis, integrate type checking with ty, and automate quality checks with Ruff and git hooks. What Makes This Book Different Effective Testing is a hands-on journey through real-world testing scenarios using a project that evolves throughout the book. You'll see exactly when to use different testing approaches, how to write tests that guide both humans and AI toward correct behavior, and how to build a testing workflow that fits naturally into your development process. What You'll Learn - pytest fundamentals: fixtures, parametrization, markers, and configuration - Doctest: turn your documentation into executable tests - Property-based testing with Hypothesis: catch edge cases you'd never think to test - Test-driven development: write tests first and let them guide your implementation - Mocking and monkeypatching: test code with external dependencies - Code coverage: what it means and what it doesn't - Type checking with ty: catch bugs without running code - Automation: linting with Ruff, git hooks with prek, and CI/CD with GitHub Actions - Jupyter testing: use ipytest to test notebook code Who This Book Is For Whether you're new to testing or looking to level up your skills, this book meets you where you are. You should be comfortable with basic Python (functions, loops, classes), but you don't need prior testing experience. Experienced developers will appreciate the practical patterns, clear explanations of when to use different approaches, and integration of modern tools like uv, Ruff, and ty into a cohesive workflow.
IMPORT EASILY
By purchasing this product you can deduct VAT with your RUT number