In the previous few recipes, we've seen how to create JUnit tests from scratch and based upon existing classes. We've also seen how to create a test suite that defines a set of tests and the order in which they can be executed.
In this recipe, we'll see how we can run all of those tests within NetBeans and see the reporting of the tests we've run.
NetBeans provides several ways to run tests and test suites. We'll look at all of these techniques within this recipe.
To complete this recipe, you need to ensure that you have installed the JUnit support into NetBeans as described in the earlier recipe, Installing JUnit support into NetBeans.
You'll also need the sample project we created in the previous recipe, Creating a JUnit test suite. If you have not completed that recipe, the project is available as part of the code download bundle for the book.