Skip to content

Running RedDeer tests

Marián Labuda edited this page Dec 1, 2015 · 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

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:

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

Clone this wiki locally