Chapter 7Strategy
So far in this book we’ve been talking about the mechanics of pytest—the “how to write tests” part of software testing—including writing test functions, using fixtures, and implementing parametrized testing. In this chapter, we’re going to use all that you’ve learned about pytest so far to create a test strategy for the Cards project—the “what tests to write” part of software testing.
We’ll start by defining goals for our test suite. We’ll then look at how the software architecture of Cards has influence on our test strategy and is influenced by the need for tests. Then we can start selecting and prioritizing which features to test. Once we know what features need tests, we can generate a list of test cases needed. All of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access