Skip to content

Commit

Permalink
[pmonks#6] Solved testing issue with doo and phantomjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilio Silva Schlenker committed May 11, 2019
1 parent 4d47fb1 commit 7b79930
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
:username :env/clojars_username
:password :env/clojars_password}]]
:codox {:source-uri "https://github.com/clj-commons/unfurl/blob/master/{filepath}#L{line}"}
:plugins [[lein-cljsbuild "1.1.7"]]
:cljsbuild {:builds [{:source-paths ["src" "test"]
:plugins [[lein-cljsbuild "1.1.7"] [lein-doo "0.1.10"]]
:cljsbuild {:builds [{:id "test"
:source-paths ["src" "test"]
:compiler {:output-to "target/unit-tests.js"
:optimizations :none
:target :nodejs
:main unfurl.api-test}}]
:test-commands {"unit-tests" ["node" "target/unit-tests.js"]}})
:main unfurl.runner}}]
:test-commands {"unit-tests" ["lein" "doo" "phantom" "test" "once"]}})

6 changes: 6 additions & 0 deletions test/unfurl/runner.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(ns unfurl.runner
(:require [cljs.test :as test]
[doo.runner :refer-macros [doo-all-tests doo-tests]]
[unfurl.api-test]))

(doo-tests 'unfurl.api-test)

0 comments on commit 7b79930

Please sign in to comment.