summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-06-02 13:20:05 +0530
committerSebastian Thiel <sthiel@thoughtworks.com>2019-06-02 13:20:05 +0530
commit1c538654fba3caf7f7d601d6bf8a4af24faf19c8 (patch)
treed384f68b43bb482a735ffa49d5ccd31d7ce29367 /Makefile
parent6d82a724b0452e417e20cbe8a02e3bed647e9674 (diff)
first infrastructure for unit-level tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 405efb0..8dd4eba 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,8 @@ help:
$(info lint | run lints with clippy)
$(info benchmark | just for fun, really)
$(info profile | only on linux - run callgrind and annotate it)
+ $(info unit-tests | run all unit test)
+ $(info continuous-unit-tests | run all unit test whenever something changes)
$(info journey-tests | run all stateless journey test)
$(info continuous-journey-tests | run all stateless journey test whenever something changes)
$(info -- Use docker for all dependencies - run make interactively from there ----------------)
@@ -33,6 +35,12 @@ profile: target/release/dua
benchmark: target/release/dua
hyperfine '$<'
+unit-tests:
+ cargo test --test interactive
+
+continuous-unit-tests:
+ watchexec $(MAKE) unit-tests
+
journey-tests: target/debug/dua
./tests/stateless-journey.sh $<