Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition 197757

Паперова книга
197757
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 1
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 2
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 3
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 4
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 5
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 6
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 7
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 8
Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition - фото 9
  • ISBN
    9781680508604
  • Бренд
  • Автор
  • Серія
    Pragmatic Programmers
  • Рік
    2022
  • Мова
    Англійська
  • Ілюстрації
    Чорно-білі
  • Жанр
    Мови програмування, Тестування ПЗ
2'000
Купити

Все про “Python Testing with pytest. Simple, Rapid, Effective, and Scalable. 2nd Edition”

Від видавця

Test applications, packages, and libraries large and small with pytest, Python’s most powerful testing framework. Pytest helps you write tests quickly and keep them readable and maintainable. In this fully revised edition, explore pytest’s superpowers—simple asserts, fixtures, parametrization, markers, and plugins—while creating simple tests and test suites against a small database application. Using a robust yet simple fixture model, it’s just as easy to write small tests with pytest as it is to scale up to complex functional testing. This book shows you how.

Pytest is undeniably the best choice for testing Python projects. It’s a full-featured, flexible, and extensible testing framework. Pytest’s fixture model allows you to share test data and setup procedures across multiple layers of tests. The pytest framework gives you powerful features such as assert rewriting, parametrization, markers, plugins, parallel test execution, and clear test failure reporting—with no boilerplate code.

With simple step-by-step instructions and sample code, this book gets you up to speed quickly on this easy-to-learn yet powerful tool. Write short, maintainable tests that elegantly express what you’re testing. Speed up test times by distributing tests across multiple processors and running tests in parallel. Use Python’s built-in assert statements instead of awkward assert helper functions to make your tests more readable. Move setup code out of tests and into fixtures to separate setup failures from test failures. Test error conditions and corner cases with expected exception testing, and use one test to run many test cases with parameterized testing. Extend pytest with plugins, connect it to continuous integration systems, and use it in tandem with tox, mock, coverage, and even existing unittest tests.

Write simple, maintainable tests quickly with pytest.

Why a Second Edition?

  • Both Python and pytest have changed since the first edition of this book was published in 2017. There have been updates to pytest that are now reflected in the book:
  • New builtin fixtures
  • New flags
  • The addition of package scope fixtures
  • There have also been updates to Python that are reflected in the book:
  • The adoption of f-strings and pathlib
  • The addition of dataclasses

Also, since publication of the first edition, I have taught many, many people about pytest, and I think I’ve learned how to be a better teacher. The second edition not only expands on what is covered in the first edition—it grew from 7 to 16 chapters!—but also it presents the material in what I think is a more gradual, digestible manner.

Рецензії

0

Всі характеристики

  • Бренд
  • Автор
  • Серія
    Pragmatic Programmers
  • Категорія
    ПрограмуванняТестування ПЗ
  • Номер видання
    2-ге вид.
  • Рік
    2022
  • Сторінок
    274
  • Формат
    190х230 мм
  • Обкладинка
    М'яка
  • Тип паперу
    Офсетний
  • Мова
    Англійська
  • Ілюстрації
    Чорно-білі
  • Жанр
    Мови програмуванняТестування ПЗ
  • Безкоштовна доставка від 1'500,00 ₴
Персонально для вас
Python Data Science Handbook: Essential Tools for Working with Data 2nd Edition
274096
Jake VanderPlas
1'900 ₴
Data Labeling in Machine Learning with Python: Explore modern ways to prepare labeled data for training and fine-tuning ML and generative AI models
280704
Vijaya Kumar Suda
1'900 ₴
Python Data Cleaning Cookbook: Prepare your data for analysis with pandas, NumPy, Matplotlib, scikit-learn, and OpenAI 2nd ed. Edition
286419
Michael Walker
1'900 ₴
Powerful Python: Patterns and Strategies with Modern Python 1st Edition
292936
Aaron Maxwell
1'900 ₴
Deep Reinforcement Learning with Python: RLHF for Chatbots and Large Language Models Second Edition
295068
Nimish Sanghi
1'900 ₴
Modern Python Cookbook: 130+ updated recipes for modern Python 3.12 with new techniques and tools 3rd ed. Edition
295071
Steven F. Lott
1'900 ₴
Beginning ChatGPT for Python: Build Intelligent Applications with OpenAI APIs First Edition
295072
Lydia EvelynBruce Hopkins
1'900 ₴
Learn AI-Assisted Python Programming, Second Edition: With GitHub Copilot and ChatGPT 2nd Edition
305315
Daniel ZingaroLeo Porter
1'900 ₴
Hands-on Matplotlib. Learn Plotting and Visualizations with Python 3. 1st Ed.
244684
Ashwin Pajankar
2'000 ₴
Financial Theory with Python: A Gentle Introduction. 1st Ed.
244749
Yves Hilpisch
2'000 ₴
Flask Web Development: Developing Web Applications with Python 2nd Edition
66981
5/1
Miguel Grinberg
2'020 ₴
Practical Fraud Prevention. Fraud and AML Analytics for Fintech and eCommerce, Using SQL and Python
197700
Gilit SaportaShoshana Maraney
2'100 ₴
Beginning Python: From Novice to Professional Fourth Edition
284244
Magnus Lie HetlandFabio Nelli
2'100 ₴
Numerical Python: Scientific Computing and Data Science Applications with Numpy, SciPy and Matplotlib Third Edition
295069
Robert Johansson
2'100 ₴
The Quick Python Book, Fourth Edition
302585
Naomi Ceder
2'100 ₴
Вивчаємо Python. Том 1. 5-е видання
111737
5/1
Марк Лутц
2'134 ₴2'200 ₴