• Complain

Bruno Oliveira - Pytest quick start guide : write better Python code with simple and maintainable tests

Here you can read online Bruno Oliveira - Pytest quick start guide : write better Python code with simple and maintainable tests full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Bruno Oliveira Pytest quick start guide : write better Python code with simple and maintainable tests
  • Book:
    Pytest quick start guide : write better Python code with simple and maintainable tests
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2018
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Pytest quick start guide : write better Python code with simple and maintainable tests: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Pytest quick start guide : write better Python code with simple and maintainable tests" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Bruno Oliveira: author's other books


Who wrote Pytest quick start guide : write better Python code with simple and maintainable tests? Find out the surname, the name of the author of the book and a list of all author's works by series.

Pytest quick start guide : write better Python code with simple and maintainable tests — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Pytest quick start guide : write better Python code with simple and maintainable tests" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
pytest Quick Start Guide Write better Python code with simple and - photo 1
pytest Quick Start Guide

Write better Python code with simple and maintainable tests

Bruno Oliveira

BIRMINGHAM - MUMBAI pytest Quick Start Guide Copyright 2018 Packt - photo 2

BIRMINGHAM - MUMBAI
pytest Quick Start Guide

Copyright 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Commissioning Editor: Kunal Chaudhari
Acquisition Editor: Siddharth Mandal
Content Development Editor: Roshan Kumar
Technical Editor: Jinesh Topiwala
Copy Editor: Safis Editing
Project Coordinator: Hardik Bhinde
Proofreader: Safis Editing
Indexer: Priyanka Dhadke
Graphics: Jason Monteiro
Production Coordinator: Deepika Naik

First published: August 2018

Production reference: 1270818

Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.

ISBN 978-1-78934-756-2

www.packtpub.com

maptio Mapt is an online digital library that gives you full access to over - photo 3
mapt.io

Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.

Why subscribe?
  • Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals

  • Improve your learning with Skill Plans built especially for you

  • Get a free eBook or video every month

  • Mapt is fully searchable

  • Copy and paste, print, and bookmark content

PacktPub.com

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and, as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.

At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.

Foreword

pytest is one of the projects that show off the best qualities of Python; it is the easiest Python testing framework to get started and also the most powerful. The pytest developers leverage metaprogramming to help users; we can write tests as plain functions and use the
assert keyword for checks, which means we can use any Python expression as a check, and we don't need to memorize the names of dozens of assertThis, assertThat methods. When there is a test failure, pytest uses sophisticated introspection to show the difference between the expected value and the value returned by the code under test. Introspection and decorators are also used to provide fixtures, parameters, grouping, skipping, and such like.

pytest is basically two parts: a library that gives you the API to write tests, and a test runner, a command-line utility that can search and execute tests across your project packages. The behavior of the pytest CLI can be configured in many ways, as described in this guide. By default, pytest is smart enough to collect tests written with the standard unittest package as well as doctest, running them and reporting all their results together. This means you can start using pytest now to run the tests you've already written with unittest and doctest.

pytest is very powerful out of the box, but it can also be enhanced by a large collection of industrial-strength plugins. A good collection of the best plugins is covered in this book.

If you are in the business of writing libraries and APIs for others to use, pytest is not only a great tool, but also a plentiful source of ideas and techniques, leveraging the best features of Python.

Anyone willing to learn pytest will be lucky to be guided by Bruno Oliveira, a long-time core developer of this most practical, powerful, and Pythonic package.

Thank you for your work on pytest, Bruno and for writing this book.

Valeu!

Luciano Ramalho
Principal consultant at Thoughtworks and author of Fluent Python

Contributors
About the author

Bruno Oliveira is a software developer with 18 years experience working at ESSS, developing desktop and web applications for simulation and numerical analysis for several industry sectors including oil and gas, aerospace, automotive, and chemical processes. Having taken part in the development of an internal testing framework to attend to the various needs of the applications he worked with, and having always been interested in testing and software quality, in 2012, Bruno took note of pytest and immediately fell in love with the project. He started contributing whenever he could and has been a pytest core contributor since 2014.

About the reviewers

Igor T. Ghisi is a software developer with a BSc in computer science and an MSc in computational mechanics. He has worked for 10 years in the largest research center in Latin America, in Rio de Janeiro, building software for R&D in engineering using agile practices, with a focus on the oil and gas industry. He developed software for 3D Mesh Generation, Mesh Visualization, Reservoir Simulation, Uncertainty, and Multi-disciplinary Optimization . He switched to web development over the last four years to solve engineering problems using web and cloud technologies.

Edson Tadeu Monteiro Manoel has more than 15 years' experience working in scientific software development, mostly using a mix of C++ and Python. He has been using pytest in his everyday work since 2013.

Packt is searching for authors like you

If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Pytest quick start guide : write better Python code with simple and maintainable tests»

Look at similar books to Pytest quick start guide : write better Python code with simple and maintainable tests. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Pytest quick start guide : write better Python code with simple and maintainable tests»

Discussion, reviews of the book Pytest quick start guide : write better Python code with simple and maintainable tests and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.