diff --git a/test/Run_Test.m b/test/Run_Test.m
index 067c7d4af7beb19548ad832723d1865258e79245..e097828f4312afcdae669ced34b6e2f79282a88b 100644
--- a/test/Run_Test.m
+++ b/test/Run_Test.m
@@ -17,4 +17,7 @@
 % along with this program. If not, see <https://www.gnu.org/licenses/>.
 
 pkg load caosdb;
-moxunit_runtests -verbose test_unittest.m;
+test_result = moxunit_runtests("-verbose", "test_caosdb.m");
+if not(test_result)
+  exit(1)
+end