Permalink
Browse files

enabling running tests at the commandline

  • Loading branch information...
swannodette committed Jan 8, 2016
1 parent 1a834e7 commit 29b036d955b35538dd78e055fd28e7eff26a27b3
Showing with 33 additions and 3 deletions.
  1. +7 −0 bin/test
  2. +13 −0 script/test.clj
  3. +11 −0 src/test/om/next/run_tests.cljs
  4. +2 −3 src/test/om/next/tests.cljs
@@ -0,0 +1,7 @@
#!/bin/bash
set -e
bin/classpath
java -cp `cat classpath.txt` clojure.main script/test.clj
node target/test/test.js
@@ -0,0 +1,13 @@
(require '[cljs.build.api :as b])
(b/build (b/inputs "src/main" "src/test")
{:target :nodejs
:main 'om.next.run-tests
:output-to "target/test/test.js"
:output-dir "target/test/out"
:parallel-build true
:compiler-stats true
:static-fns true
:verbose true})
(System/exit 0)
@@ -0,0 +1,11 @@
(ns om.next.run-tests
(:require [cljs.test :refer-macros [run-tests]]
[cljs.nodejs]
[om.next.tests]))
(enable-console-print!)
(defn main []
(run-tests 'om.next.tests))
(set! *main-cli-fn* main)
@@ -1,12 +1,11 @@
(ns om.next.tests
(:require [cljs.test :refer-macros [deftest is are testing run-tests]]
[goog.object :as gobj]
[clojure.zip :as zip]
[cljsjs.react]
[om.next :as om :refer-macros [defui ui]]
[om.next.protocols :as p]
[om.next.impl.parser :as parser]
[om.dom :as dom]
[om.tempid :as tempid :refer [tempid]]))
[om.tempid :refer [tempid]]))
;; -----------------------------------------------------------------------------
;; Components

0 comments on commit 29b036d

Please sign in to comment.