diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-02 13:20:05 +0530 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-02 13:20:05 +0530 |
commit | 1c538654fba3caf7f7d601d6bf8a4af24faf19c8 (patch) | |
tree | d384f68b43bb482a735ffa49d5ccd31d7ce29367 /Makefile | |
parent | 6d82a724b0452e417e20cbe8a02e3bed647e9674 (diff) |
first infrastructure for unit-level tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 $< |