diff --git a/Makefile b/Makefile
index 2eacf9442596a8d2a5b26ede28df8e7957e0ebcc..3c50ad605d027087ac9e5c8661bb07a07bcdcf80 100644
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,10 @@ uninstall:
 	dune uninstall
 
 test:
-	dune runtest --root=.
+	dune build @tests/local
 
 test-ci:
-	dune runtest -j2 --root=.
+	dune build -j2 @tests/ci
 
 promote:
 	dune promote --root=.
diff --git a/tests/dune b/tests/dune
index e2e87361de2336686b9ef256fd6ba7eb2269f404..e65becccab35297919fb528089fd968cfa4318ec 100644
--- a/tests/dune
+++ b/tests/dune
@@ -1,4 +1,20 @@
 (cram
+ (alias local)
+ (applies_to * \ nier_to_onnx)
+ (deps
+  (package caisar)
+  setup_env.sh
+  TestNetwork.nnet
+  TestNetworkONNX.onnx
+  TestSVM.ovo
+  (glob_files bin/*)
+  filter_tmpdir.sh
+  ../lib/xgboost/example/california.csv
+  ../lib/xgboost/example/california.json)
+ (package caisar))
+
+(cram
+ (alias ci)
  (deps
   (package caisar)
   setup_env.sh