O'Reilly logo

JUnit in Action, Second Edition by Gary Gregory, Vincent Massol, Felipe Leme, Petar Tahchiev

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 9. Running JUnit tests from Ant

It’s supposed to be automatic, but you still have to press the button.

John Brunner

This chapter covers

  • Introducing Ant and Ivy
  • Running Ant JUnit tasks
  • Creating reports

In this chapter, we look at Apache Ant[1] or Ant for short, a free and open source build tool with direct support for JUnit. You can use Ant with any Java programming environment. We show you how to be more productive with JUnit by running tests as part of the build. We also show you how to set up your environment to build Java projects, manage JAR file dependencies, execute JUnit tests, and generate JUnit reports.

1http://ant.apache.org/

9.1. A day in the life

For unit tests to be effective, they must be part of the development ...

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