aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7b9e083..126940f 100644
--- a/README.md
+++ b/README.md
@@ -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
+```