mirror of
https://github.com/penpot/penpot.git
synced 2025-02-08 08:09:14 -05:00
feat(backend): add entry point for tests
This commit is contained in:
parent
f2411368ba
commit
9d5d4c9826
1 changed files with 18 additions and 0 deletions
18
backend/test/uxbox/tests/main.clj
Normal file
18
backend/test/uxbox/tests/main.clj
Normal file
|
@ -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 <niwi@niwi.nz>
|
||||
|
||||
(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))))
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue