O'Reilly logo

xUnit Test Patterns: Refactoring Test Code by Gerard Meszaros

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 24Test Organization Patterns

Patterns in This Chapter

Named Test Suite 592

Test Code Reuse

      Test Utility Method 599

      Parameterized Test 607

Testcase Class Structure

      Testcase Class per Class 617

      Testcase Class per Feature 624

      Testcase Class per Fixture 631

Utility Method Location

      Testcase Superclass 638

      Test Helper 643

Named Test Suite

How do we run the tests when we have arbitrary groups of tests to run?

We define a test suite, suitably named, that contains a set of tests that we wish to be able to run as a group.

image

When we have a large number of tests, we need to organize them in a systematic way. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required