Installation

Instructions for:

For release announcements, subscribe to the Infinitest-Eclipse News Feed.

Filtering Tests

If you have tests in your project that run too slowly to run all the time, you can tell Infinitest not to run them. Create a file named infinitest.filters that contains regular expressions (one per line) that match the test classes you want to filter. Put this file in the root of your project (a.k.a. the working directory), and Infinitest will filter those tests out. Here are some examples:


Tests that end in ITest: .*ITest
Inner Classes: .*\$.*
Tests in a certain package: com\.mycompany\.mypackage\..*
All tests in this project: .*

You can check this file in source control to allow all developers to filter the same tests, or generate it as part of your build process.

Setting JVM Options

If you need to set custom JVM options (such as memory settings, system properties, java language assertions, etc…) when running tests, you can configure them by creating a simple text file in the working directory of your project named infinitest.args that contains one VM argument per line to be included whenever Infinitest runs tests. Just as with the filter file, this can be checked into source control, or generated as part of an automated build.

Pro Tips

  • You can run all the tests in a project (and generally ‘reset’ things) in Infinitest-Eclipse by cleaning the project.
  • You can view the stack trace for a failure from the quick fix menu

Common Problems

Infinitest isn’t running my tests

If you’re running Eclipse, ensure that:

  • You’ve resolved any compiler or other workspace errors
  • The “Continuously Test” option in the Infinitest preferences (under Window->Preferences) is checked
  • “Build Automatically” under the “Project” menu is checked
  • The test is not being filtered by an entry in the infinitest.filters file in the root directory of the project
  • If you’re using a custom builder (like AspectJ) make sure you have the appropriate plugins installed

If you’re using IntelliJ:

  • You have to compile the file after you change it. IntelliJ does not compile classes automatically like Eclipse
  • Check the infinitest.filters file

I can’t access the update site!

If you are behind a firewall, you may have limited access to the Internet. This can cause problems accessing the update site. If you use a web proxy to connect to the Internet, make sure that you have correctly entered your proxy settings into Eclipse under Preferences->General->Network Connections.