From 9d5d4c9826347bbee6a38790850076c05f64b0b3 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 13 Jun 2019 21:23:01 +0200 Subject: [PATCH] feat(backend): add entry point for tests --- backend/test/uxbox/tests/main.clj | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 backend/test/uxbox/tests/main.clj diff --git a/backend/test/uxbox/tests/main.clj b/backend/test/uxbox/tests/main.clj new file mode 100644 index 0000000000..0d321ba5a7 --- /dev/null +++ b/backend/test/uxbox/tests/main.clj @@ -0,0 +1,18 @@ +;; This Source Code Form is subject to the terms of the Mozilla Public +;; License, v. 2.0. If a copy of the MPL was not distributed with this +;; file, You can obtain one at http://mozilla.org/MPL/2.0/. +;; +;; Copyright (c) 2019 Andrey Antukh + +(ns uxbox.tests.main + (:require [clojure.test :as test])) + +(defn -main + [& args] + (require 'uxbox.tests.test-projects) + (let [{:keys [fail]} (test/run-all-tests #"^uxbox.tests.*")] + (if (pos? fail) + (System/exit fail) + (System/exit 0)))) + +