Skip to content

How to use the AECID testsuite

whotwagner edited this page Nov 27, 2020 · 2 revisions

How to use the AECID-testsuite

The AECID-testsuite runs all the necessary tests for the logdata-anomaly-miner. Most of the tests are executed automatically by Travis-CI.

Build a Docker-Image

The easiest way to have a test-environment is to build the Docker-Image:

$ cd logdata-anomaly-miner
$ docker build -f aecid-testsuite/Dockerfile -t aecid/logdata-anomaly-miner-testing:latest .

Using the Docker-Image

Run the unit-tests

$ docker run -m=2G --rm aecid/logdata-anomaly-miner-testing runUnittests

Run suspendmode-tests

$ docker run -m=2G --rm aecid/logdata-anomaly-miner-testing runSuspendModeTest

Run a aminerdemo-test

$ docker run -m=2G --rm aecid/logdata-anomaly-miner-testing runAMinerDemo demo/AMiner/demo-config.py

Run a integration-test

$ docker run -m=2G --rm aecid/logdata-anomaly-miner-testing aminerIntegrationTest config.py

Run coverage-tests

$ docker run -m=2G --rm aecid/logdata-anomaly-miner-testing runCoverageTests

Run all tests

$ docker run -m=2G --rm aecid/logdata-anomaly-miner-testing ALL

Run a shell inside the container

$ docker run -m=2G -it --rm aecid/logdata-anomaly-miner-testing SHELL