Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
  1. Make sure the ashcroft jar is on your project's classpath: Ctrl-Alt-S -> Paths -> Libraries (Classpath).
  2. Select Edit Configurations from the run drop-down box to bring up the Run/Debug Configurations dialog box.

  3. Switch to the JUnit tab if it is not showing already. To use Ashcroft with one specific unit test entry, add the following string to the VM Parameters text box as shown below:

    Code Block

  4. Better yet, go ahead and make Ashcroft a default VM setting for your unit tests. Click the Edit Defaults button.

  5. Now Ashcroft will automatically police your unit tests and make sure that they don't break any of the Ashcroft Commandments.

Also see Ashcroft Configuration for a full list of configuration options.