Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Running RedDeer tests

Radim Hoopp edited this page Sep 16, 2013 · 3 revisions

There are basically two ways to run RedDeer test (at least two fully supported ways):

  • Run tests using RedDeer runner directly from eclipse
  • Run RedDeer tests via maven

Using RedDeer runner directly from eclipse

If you've created your test plugin as "File -> New -> Other... -> New RedDeer Test Plug-in" you should be able to execute the test by right clicking the project and selecting "Run as... -> RedDeer Test":

This is sufficient for basic tests without configuration. For tests needing some configuration, one needs to open "Run Configurations", crate and set up RedDeer Test configuration:

If you want to run just one test suite, select that test suite in Test class field as it's shown in the screenshot above. Be sure to set Test runner to JUnit4 otherwise you won't be able to set your test suite in Test class field.

Path to test configuration files are configured by reddeer.config property. This property can be set up on Arguments page of Run Configurations window in VM Arguments section (along with other VM arguments) like so:

-Dreddeer.config=/path/to/configuration/files

###Running tests using maven

Clone this wiki locally