Skip to content

it-pebune/ani-research-system-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ani-research-system-test

System tests.

The tests are run in container markhobson/maven-chrome that has all the necessaries dependencies.
It contains:

-JDK 8/11/16
-Maven 3.8.1
-Chrome 91
-ChromeDriver 91

It is available on Docker Hub at:

markhobson/maven-chrome

Build container with:

docker build -t runanitests .

At build time the container will run the set of tests in order to download all dependencies needed.

Run container using:

docker run -v /local_writable_path:/tmp/test_results:Z runanitests

On some machines that will not work without mentioning the localhost as source for container:

docker run -v /local_writable_path:/tmp/test_results:Z localhost/runanitests

At every run two different tests results report files are generated in container at /tmp/test_results path. At the end of the run they will be copied in /local_writable_path to be easily accessible.

Other usefull commands:

List all containers:

docker ps

List all containers and runs:

docker ps -a

Interact with docker container:

docker run -it [container_id or name] bash

Remove container:

docker rm [container_id or name]

Remove all runs:

docker system prune

This will clean-up all container runs from system.

Remove docker image:

docker images 
docker images rm [image_id]

More info about cleanup here

Releases

No releases published

Packages

No packages published