Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is really easy to add Ashcroft coverage to your unit test suite in Intellij IDEA

1. Select the Edit Configurations dialog from the run drop-down box to bring up the Run/Debug Configurations dialog box.

2. 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:

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

Image Added

3. Once again, that VM parameter is:

Image Added

Now Ashcroft will police your unit tests and make sure that they don't break any rules.