CHAPTER 1 : A History of Testing
You Do Test, Don’t You?
Fundamentals and Best Practices
Summary
CHAPTER 2 : Writing Unit Tests
What Is Unit Testing?
What Should You Test?
Writing Your First Unit Test
Following the PEP-8 Standard
Unit Test Structure
Additional Unit Test Examples
Useful Methods in Unit Testing
Summary
CHAPTER 3 : Utilizing Unit Test Tools
Using Python’s Nose
PyTest: An Alternative Test Runner
Mock and Patch Tricky Situations
Installing the Mock Library
Mocking a Class and Method Response
When Mock Won’t Do, Patch!
Summary
CHAPTER 4 : Writing Testable Documentation
Writing Your First Doctest
Improving Doctests with Nose Integration
Summary
Resources
CHAPTER 5 : Driving Your Development with Tests
Agile Development
Ethos of Test Driven Development
Advantages of Test Driven Development
Ping-Pong Programming
Test Driving Your Problem
Summary
Resources
CHAPTER 6 : Writing Acceptance Tests
What Is Acceptance Testing?
Letting Behavior Drive Your Problem
Advanced Acceptance Test Techniques
Summary
Resources
CHAPTER 7 : Utilizing Acceptance Test Tools
Cucumber: The Acceptance Test Standard
Lettuce in Detail
Robot: An Alternative Test Framework
Summary
Resources
CHAPTER 8 : Maximizing Your Code’s Performance
Understanding the Importance of Performance Testing
JMeter and Python
Code Profiling with cProfile
Summary
Resources
CHAPTER 9 : Looking After Your Lint
Coming to Grips with Pylint
Customizing Pylint’s Output
Covering All Your Code with Unit Tests
Summary
Resources
CHAPTER 10 : Automating Your Processes
Build Paver Tasks
Setting Up Automated Builds
Summary
Resources
CHAPTER 11 : Deploying Your Application
Deploying Your Application to Production
Smoke Testing a Deployed Application
Summary
Resources
CHAPTER 12 : The Future of Testing Python
Stub the Solution
Making Deployment Natural
Automating (Nearly) Everything
Working in Public
Collaborating on Step Definitions
Final Thoughts
Resources
Index
66. Testing Python
Author:
Myanmar Ebook Store
Genre:
»
Programming
Rating
Posted by Myanmar Ebook Store
Posted on
