Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part: II Test Drive through an XP Project > Making Executable Tests Run

Chapter 22. Making Executable Tests Run

As we mentioned previously, the executable tests we've written can be run as soon as the corresponding code has been completed, if we can call those parts of the system (like the login code) directly from the tests. In this chapter, we're going to illustrate this with a simple example. We're going to use JUnit (www.junit.org) as our test framework. JUnit will provide a lot of the infrastructure we need, including a way to run the test and get graphical test results.

If you're using some other framework or test tool, no problem. You'll apply the same principles we show to your own executable tests, using the appropriate language and framework. Nearly every language has JUnit equivalents (collectively referred to as XUnit), which you can find at www.xprogramming.com/software.htm.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial