Running Unit Tests with Ant from PowerDesigner:

You run unit tests with Ant from PowerDesigner as follows:

  1. Select Language > Generate Java Code to open the Generation dialog.
  2. Enter a directory in which to generate the files, and specify whether you want to perform a model check (see Checking an OOM).
  3. Select the Options tab.
  4. Set the Generate Ant build.xml file option to true.
  5. Select the Tasks tab.
  6. Check the Hibernate: Run the generated unit tests task.
  7. Click OK to begin generation.
  8. After you close the generation files list window, the JUnit task runs. You can see the result in output window.