O'Reilly logo

Swing Extreme Testing by Tim Lavers, Lindsay Peters

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 3. Infrastructure for Testing

Almost any project will have to deal with three test infrastructure issues, which are:

  • Where should the test classes go?

  • How should test data be managed?

  • How should we deal with temporary files created by our tests?

In this chapter, we present solutions to each of these problems. We don't claim that these are the only good ways of setting up test infrastructure, simply because we don't think that there are single best approaches to these issues. What we present are solutions that have worked very well for us and can easily be tailored to the requirements and culture of other projects in other organizations.

Where Should the Unit Tests Go?

Three things we ask of our test classes are:

  • It must be easy to check whether ...

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