diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -39,3 +39,22 @@ else echo "verification failed" fi ``` + +## Testing + +Unit tests are defined under 't/'. + +``` +prove -v t/*.t +``` + +You can use the Dockerfile to remove the headache for setting up the test +environment. You will need to build the docker image before being able to use +it. + +Test categories are enabled via environment variables enabled via docker's '--env' parameter. + +``` +docker build -t sbotools2-test:15.0 --file docker/sbotools2-test:15.0.dockerfile . +docker run -v $(realpath .):/root/sbotools2 --env TEST_INSTALL=1 --env TEST_ONLINE=1 -t sbotools2-test:15.0 +``` |