Running Unit Tests with Ant from the Command Line

You can run unit tests with Ant from the command line.

  1. Open a command line window.
  2. Go to the directory where you have generated the code.
  3. Run the JUnit test task by issuing command: Ant junit
  4. Check the output result in ejb3-persistence.log and testout directory.