Crafting Test-Driven Software with Python: Write test suites that scale with your applications' needs and complexity using Python and PyTest
Molina, Alessandro
- 出版商: Packt Publishing
- 出版日期: 2021-02-18
- 售價: $1,520
- 貴賓價: 9.5 折 $1,444
- 語言: 英文
- 頁數: 338
- 裝訂: Quality Paper - also called trade paper
- ISBN: 183864265X
- ISBN-13: 9781838642655
-
相關分類:
Python、程式語言、TDD 測試導向開發
立即出貨 (庫存=1)
買這商品的人也買了...
-
$480$408 -
$1,460$1,153 -
$520$442 -
$680$537 -
$260$234 -
$990$941 -
$1,230$1,169 -
$1,400$1,330 -
$1,540$1,509 -
$500$375 -
$600$468 -
$1,470Developing IoT Projects with ESP32: Automate your home or business with inexpensive Wi-Fi devices
-
$2,475Software Architecture: The Hard Parts: Modern Trade-Off Analyses for Distributed Architectures (Paperback)
-
$2,010$1,910
相關主題
商品描述
Get to grips with essential concepts and step-by-step explanations to apply TDD practices to your Python projects while keeping your test suite under control
Key Description:
- Build robust Python applications using TDD and BDD methodologies
- Test Python web applications using WebTest and web frameworks
- Leverage PyTest to implement stringent testing mechanisms to ensure fault-tolerant applications
Book Description:
Test-driven development (TDD) is a set of best practices that helps developers to build more scalable software and is used to increase the robustness of software by using automatic tests. This book shows you how to apply TDD practices effectively in Python projects.
You'll begin by learning about built-in unit tests and Mocks before covering rich frameworks like PyTest and web-based libraries such as WebTest and Robot Framework, discovering how Python allows you to embrace all modern testing practices with ease. Moving on, you'll find out how to design tests and balance them with new feature development and learn how to create a complete test suite with PyTest. The book helps you adopt a hands-on approach to implementing TDD and associated methodologies that will have you up and running and make you more productive in no time. With the help of step-by-step explanations of essential concepts and practical examples, you'll explore automatic tests and TDD best practices and get to grips with the methodologies and tools available in Python for creating effective and robust applications.
By the end of this Python book, you will be able to write reliable test suites in Python to ensure the long-term resilience of your application using the range of libraries offered by Python for testing and development.
What You Will Learn:
- Find out how tests can make your life easier as a developer and discover related best practices
- Explore PyTest, the most widespread testing framework for Python
- Get to grips with the most common PyTest plugins, including coverage, flaky, xdist, and picked
- Write functional tests for WSGI web applications with WebTest
- Run end-to-end tests for web applications using Robot Framework
- Understand what test-driven development means and why it is important
- Discover how to use the range of tools available in Python
- Build reliable and robust applications
Who this book is for:
This book is for Python developers looking to get started with test-driven development and developers who want to learn about the testing tools available in Python. Developers who want to create web applications with Python and plan to implement TDD methodology with PyTest will find this book useful. Basic knowledge of Python programming is required.
商品描述(中文翻譯)
深入了解基本概念和逐步解釋,以將TDD實踐應用於Python項目並保持測試套件的控制。
關鍵描述:
- 使用TDD和BDD方法構建強大的Python應用程序
- 使用WebTest和Web框架測試Python Web應用程序
- 利用PyTest實施嚴格的測試機制,以確保容錯應用程序
書籍描述:
測試驅動開發(TDD)是一套最佳實踐,幫助開發人員構建更可擴展的軟件,並通過使用自動測試來增加軟件的健壯性。本書將向您展示如何在Python項目中有效應用TDD實踐。
您將首先了解內置的單元測試和模擬,然後涵蓋像PyTest這樣的豐富框架以及WebTest和Robot Framework等基於Web的庫,發現Python如何讓您輕鬆擁抱所有現代測試實踐。接下來,您將了解如何設計測試並將其與新功能開發保持平衡,並學習如何使用PyTest創建完整的測試套件。本書幫助您採用實踐TDD和相關方法的實踐方法,讓您立即投入並提高生產力。通過對基本概念的逐步解釋和實際示例的幫助,您將探索自動測試和TDD最佳實踐,並熟悉Python中用於創建有效和健壯應用程序的方法和工具。
通過閱讀本書,您將能夠使用Python提供的一系列測試和開發庫,編寫可靠的測試套件,以確保應用程序的長期韌性。
您將學到什麼:
- 了解測試如何使開發人員的生活更輕鬆,並了解相關的最佳實踐
- 探索PyTest,這是Python中最廣泛使用的測試框架
- 掌握最常見的PyTest插件,包括覆蓋率、不穩定性、xdist和picked
- 使用WebTest為WSGI Web應用程序編寫功能測試
- 使用Robot Framework運行Web應用程序的端到端測試
- 了解測試驅動開發的含義及其重要性
- 發現如何使用Python提供的一系列工具
- 構建可靠和健壯的應用程序
本書適合對測試驅動開發入門的Python開發人員以及想要了解Python中可用的測試工具的開發人員。希望使用PyTest實施TDD方法來創建Web應用程序的開發人員會發現本書很有用。需要具備基本的Python編程知識。