Last active
August 29, 2015 14:21
-
-
Save ku1ik/0eaeda5b58f9ce400480 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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