Skip to content

Instantly share code, notes, and snippets.

@ku1ik
Last active August 29, 2015 14:21
Show Gist options
  • Save ku1ik/0eaeda5b58f9ce400480 to your computer and use it in GitHub Desktop.
Save ku1ik/0eaeda5b58f9ce400480 to your computer and use it in GitHub Desktop.
Running ClojureScript test: test
Loading URL: env/test/unit-test.html
Running test.
Testing player.view-test
FAIL in (fg-color-test) (:)
expected: (= (v/fg-color 1 false) 111)
actual: (not (= 1 111))
Ran 6 tests containing 34 assertions.
1 failures, 0 errors.
nil
Test succeeded.
(ns player.test-runner
(:require
[cljs.test :refer-macros [run-tests]]
[player.view-test]))
(enable-console-print!)
(defmethod cljs.test/report [:cljs.test/default :end-run-tests] [m]
(if (cljs.test/successful? m)
(println "Success!")
(println "FAIL")))
(defn runner []
(let [r (run-tests 'player.view-test)]
(print r)
(if (cljs.test/successful? r) 0 1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment