Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
pytest Quick Start Guide

You're reading from   pytest Quick Start Guide Write better Python code with simple and maintainable tests

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789347562
Length 160 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Bruno Oliveira Bruno Oliveira
Author Profile Icon Bruno Oliveira
Bruno Oliveira
Arrow right icon
View More author details
Toc

Preface

Automated tests are a very important tool in a developer's tool belt. Having a set of automated tests not only increases productivity and software quality; it also works as a safety net for developers and gives confidence in relation to code refactorings. Python comes with a standard unittest module that is used to write automated tests, but there's an alternative: pytest. The pytest framework is simple to get started with, and scales from simple unit tests all the way through to complex integration testing. It is considered by many to be truly Pythonic in its approach, with simple functions, plain asserts, fixtures, plugins, and a whole plethora of features. More and more developers are adopting a full testing approach, so why not use a framework that is both simple and powerful and considered by many to be a true joy to use?

lock icon The rest of the chapter is locked
Next Section arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime