Fix and restructure tests.

This commit is contained in:
Andrey Antukh 2016-06-21 19:31:35 +03:00
parent 0326c02c05
commit 967b67f0b1
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
5 changed files with 48 additions and 43 deletions

View file

@ -0,0 +1,22 @@
(ns uxbox.tests.main
(:require [cljs.test :as test]
[uxbox.tests.geom-types]
[uxbox.tests.shapes-state]))
(enable-console-print!)
(defn main
[]
(test/run-tests
(test/empty-env)
'uxbox.tests.geom-types
'uxbox.tests.shapes-state
))
(defmethod test/report [:cljs.test/default :end-run-tests]
[m]
(if (test/successful? m)
(set! (.-exitCode js/process) 0)
(set! (.-exitCode js/process) 1)))
(set! *main-cli-fn* main)