2019-06-13 21:23:01 +02:00
|
|
|
;; 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 <niwi@niwi.nz>
|
|
|
|
|
|
|
|
(ns uxbox.tests.main
|
|
|
|
(:require [clojure.test :as test]))
|
|
|
|
|
|
|
|
(defn -main
|
|
|
|
[& args]
|
2019-11-18 11:52:57 +01:00
|
|
|
;; (require 'uxbox.tests.test-projects)
|
|
|
|
;; (require 'uxbox.tests.test-pages)
|
|
|
|
;; (require 'uxbox.tests.test-images)
|
|
|
|
;; (require 'uxbox.tests.test-icons)
|
2019-06-15 18:20:36 +02:00
|
|
|
(require 'uxbox.tests.test-users)
|
2019-06-15 23:57:21 +02:00
|
|
|
(require 'uxbox.tests.test-auth)
|
2019-11-18 11:52:57 +01:00
|
|
|
;; (require 'uxbox.tests.test-kvstore)
|
2019-06-13 21:23:01 +02:00
|
|
|
(let [{:keys [fail]} (test/run-all-tests #"^uxbox.tests.*")]
|
|
|
|
(if (pos? fail)
|
|
|
|
(System/exit fail)
|
|
|
|
(System/exit 0))))
|
|
|
|
|
|
|
|
|