Python Unit Test Automation : Practical Techniques for Python Developers and Testers 🔍
Pajankar, Ashwin Apress : Imprint : Apress, 1st ed., PS, 2017
英语 [en] · PDF · 1.8MB · 2017 · 📘 非小说类图书 · 🚀/lgli/lgrs/nexusstc/scihub/zlib · Save
描述
Report GenerationCreating an XML Report; Creating an HTML Report; Creating Color Output in the Console; Running unittest Tests from nose; Advantages of nose over unittest; Disadvantages of nose; Using Nose 2; Conclusion; Chapter 5: pytest; Introduction to pytest; Simple Test; Running Tests with the py.test Command; Test Class and Test Package in pytest; Test Discovery in pytest; xUnit-Style Fixtures; pytest Support for unittest and nose; Introduction to pytest Fixtures; Scope of pytest Fixtures; pytest.raises(); Important pytest Command-Line Options; Help.;Introduction to xUnitUsing Unittest; Order of Execution of the Test Methods; Verbosity Control; Multiple Test Classes Within the Same Test File/Module; Test Fixtures; Running Without unittest.main(); Controlling the Granularity of Test Execution; Listing All the Command-Line Options and Help; Important Command-Line Options; Creating a Test Package; Organizing the Code; Placing the Development and Test Code in a Single Directory; Placing the Development and Test Code in Separate Directories; Test Discovery; Coding Conventions for unittest; Assertions in unittest; Other Useful Methods.;Installation on Fedora and CentOSInstallation on MacOS X; Installation on Windows; Running a Python Program and Python Modes; Interactive Mode; Normal Mode; IDEs for Python; IDLE; The PyDev Plugin for Eclipse; Geany; PyCharm; Conclusion; Chapter 2: Getting Started; A Brief Introduction to Software Testing Concepts; Unit Testing; Test Automation; The Benefits of Automated Unit Testing; Using Docstrings; Example of a Docstring in Python; A Brief Introduction to doctest; Failing Tests; Separate Test File; Advantages and Disadvantages of doctest; Conclusion; Chapter 3: Unittest.;Failing a TestExceptions in the Test Case; assertRaises(); Conclusion; Chapter 4: nose and nose2; Introduction to nose; Installing nose on Linux OS; Installing nose on MacOS and Windows; Verifying the Installation; Getting Started with nose; A Simple nose Test Case; Running the Test Module with nosetests; Getting Help; Organizing the test code; Test Discovery; Fixtures for Classes, Modules, and Methods; Fixtures for Functions; Fixtures for Packages; Alternate Names of the nose Fixtures; assert\_equals(); Testing Tools; ok\_ and eq\_; The @raises() Decorator; The @timed() decorator.;This book shows readers how to automate unit testing of Python 3 code by introducing various Python 3 automation libraries, such as doctest, unittest, nose, nose2, and pytest. It also explores the important concepts in software testing and their implementation in Python 3. Hands-on knowledge of the frameworks helps readers to automate, organize, and execute their unit tests for Python 3. Knowledge of the frameworks discussed in the book is often acquired by reading source code, manuals, and posting questions on community forums. This tends to be a slow and painful process. Python Unit Test Automation will allow readers to quickly ramp up their understanding of unit test libraries for Python 3 through the practical use of code examples and exercises. All of which makes this book a great resource for software developers and testers who want to get started with unit test automation in Python 3.;At a Glance; Contents; About the Author; About the Technical Reviewers; Acknowledgments; Introduction; Chapter 1: Introduction to Python; The History of Python; Features of Python; Simple; Easy to Learn; Easy to Read; Easy to Maintain; Open Source; High-Level Language; Portable; Interpreted; Object-Oriented; Extensible; Extensive Libraries; Robust; Rapid Prototyping; Memory Management; Powerful; Community Support; Python 3; The Differences Between Python 2 and Python 3; Why Use Python 3; Installation of Python 3; Installation on Linux; Installation on Debian, Ubuntu, and Derivatives.
备用文件名
lgrsnf/Z:\Bibliotik_\33\P\%&Ovr0\Python Unit Test Automation - Ashwin Pajankar.pdf
备用文件名
nexusstc/Python Unit Test Automation/f3de73cd9902214070d66c747cfc5ec4.pdf
备用文件名
scihub/10.1007/978-1-4842-2677-3.pdf
备用文件名
zlib/Computers/Pajankar, Ashwin/Python unit test automation: practical techniques for Pythondevelopers and testers_5931540.pdf
备选作者
Ashwin Pajankar
备用出版商
Apress, Incorporated
备用出版商
Springer Nature
备用版本
United States, United States of America
备用版本
Springer Nature, [United States], 2017
备用版本
Berkeley, CA, 2017
备用版本
Feb 27, 2017
备用版本
2, 20170223
元数据中的注释
lg2673171
元数据中的注释
{"edition":"1","isbns":["1484226763","1484226771","9781484226766","9781484226773"],"last_page":111,"publisher":"Apress"}
备用描述
At a Glance
Contents
About the Author
About the Technical Reviewers
Acknowledgments
Introduction
Chapter 1: Introduction to Python
The History of Python
Features of Python
Simple
Easy to Learn
Easy to Read
Easy to Maintain
Open Source
High-Level Language
Portable
Interpreted
Object-Oriented
Extensible
Extensive Libraries
Robust
Rapid Prototyping
Memory Management
Powerful
Community Support
Python 3
The Differences Between Python 2 and Python 3
Why Use Python 3
Installation of Python 3
Installation on Linux
Installation on Debian, Ubuntu, and Derivatives. Installation on Fedora and CentOSInstallation on MacOS X
Installation on Windows
Running a Python Program and Python Modes
Interactive Mode
Normal Mode
IDEs for Python
IDLE
The PyDev Plugin for Eclipse
Geany
PyCharm
Conclusion
Chapter 2: Getting Started
A Brief Introduction to Software Testing Concepts
Unit Testing
Test Automation
The Benefits of Automated Unit Testing
Using Docstrings
Example of a Docstring in Python
A Brief Introduction to doctest
Failing Tests
Separate Test File
Advantages and Disadvantages of doctest
Conclusion
Chapter 3: Unittest. Introduction to xUnitUsing Unittest
Order of Execution of the Test Methods
Verbosity Control
Multiple Test Classes Within the Same Test File/Module
Test Fixtures
Running Without unittest.main()
Controlling the Granularity of Test Execution
Listing All the Command-Line Options and Help
Important Command-Line Options
Creating a Test Package
Organizing the Code
Placing the Development and Test Code in a Single Directory
Placing the Development and Test Code in Separate Directories
Test Discovery
Coding Conventions for unittest
Assertions in unittest
Other Useful Methods. Failing a TestExceptions in the Test Case
assertRaises()
Conclusion
Chapter 4: nose and nose2
Introduction to nose
Installing nose on Linux OS
Installing nose on MacOS and Windows
Verifying the Installation
Getting Started with nose
A Simple nose Test Case
Running the Test Module with nosetests
Getting Help
Organizing the test code
Test Discovery
Fixtures for Classes, Modules, and Methods
Fixtures for Functions
Fixtures for Packages
Alternate Names of the nose Fixtures
assert_equals()
Testing Tools
ok_ and eq_
The @raises() Decorator
The @timed() decorator. Report GenerationCreating an XML Report
Creating an HTML Report
Creating Color Output in the Console
Running unittest Tests from nose
Advantages of nose over unittest
Disadvantages of nose
Using Nose 2
Conclusion
Chapter 5: pytest
Introduction to pytest
Simple Test
Running Tests with the py.test Command
Test Class and Test Package in pytest
Test Discovery in pytest
xUnit-Style Fixtures
pytest Support for unittest and nose
Introduction to pytest Fixtures
Scope of pytest Fixtures
pytest.raises()
Important pytest Command-Line Options
Help.
备用描述
Quickly learn how to automate unit testing of Python 3 code with Python 3 automation libraries, such as doctest, unittest, nose, nose2, and pytest. This book explores the important concepts in software testing and their implementation in Python 3 and shows you how to automate, organize, and execute unit tests for this language. This knowledge is often acquired by reading source code, manuals, and posting questions on community forums, which tends to be a slow and painful process. Python Unit Test Automation will allow you to quickly ramp up your understanding of unit test libraries for Python 3 through the practical use of code examples and exercises. All of which makes this book a great resource for software developers and testers who want to get started with unit test automation in Python 3 and compare the differences with Python 2. This short work is your must-have quick start guide to mastering the essential concepts of software testing in Python. What You'll Learn: Essential concepts in software testing Various test automation libraries for Python, such as doctest, unittest, nose, nose2, and pytest Test-driven development and best practices for test automation in Python Code examples and exercises Who This Book Is For: Python developers, software testers, open source enthusiasts, and contributors to the Python community
开源日期
2020-07-26
更多信息……

🚀 快速下载

成为会员以支持书籍、论文等的长期保存。为了感谢您对我们的支持,您将获得高速下载权益。❤️
如果您在本月捐款,您将获得双倍的快速下载次数。

🐢 低速下载

由可信的合作方提供。 更多信息请参见常见问题解答。 (可能需要验证浏览器——无限次下载!)

所有选项下载的文件都相同,应该可以安全使用。即使这样,从互联网下载文件时始终要小心。例如,确保您的设备更新及时。
  • 对于大文件,我们建议使用下载管理器以防止中断。
    推荐的下载管理器:JDownloader
  • 您将需要一个电子书或 PDF 阅读器来打开文件,具体取决于文件格式。
    推荐的电子书阅读器:Anna的档案在线查看器ReadEraCalibre
  • 使用在线工具进行格式转换。
    推荐的转换工具:CloudConvertPrintFriendly
  • 您可以将 PDF 和 EPUB 文件发送到您的 Kindle 或 Kobo 电子阅读器。
    推荐的工具:亚马逊的“发送到 Kindle”djazz 的“发送到 Kobo/Kindle”
  • 支持作者和图书馆
    ✍️ 如果您喜欢这个并且能够负担得起,请考虑购买原版,或直接支持作者。
    📚 如果您当地的图书馆有这本书,请考虑在那里免费借阅。