# Third Party Testing

This project is an example showing how third parties can write integration type
tests of Riskscape.

## Setup

These tests require an installation of Riskscape to run and a home directory
containing the Kaiju attack examples.

To setup for the tests follow instructions in the Riskscape manual to install
Riskscape(if not already done) and create the Kaiju attack.

## Running

These tests are run using the shell test runner. This runner will run the tests
on the local machine. To enable this to happen the project needs to be configured
with:

- riskscape executable is on the system $PATH
- path to riskscape home directory containing the Kaiju attack expamples

Depending on you preference these can be changed by;

- editing *gradle.properties*
- passing *-P* property options at runtime

```
  ./gradlew integrationTest
  ./gradlew -PkaijuHome=<path to home directory> integrationTest

## Tests

*Test_Kaiju_Attacks.java* contains tests that run both a model and a function.
This test also shows how a non default *riskscape directory* can be used.
