Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kaocha js #207

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@

:plugins [[lein-environ "1.1.0"]
[migratus-lein "0.5.0"]
[lein-doo "0.1.6"]
[lein-cljsbuild "1.1.4"]
[jonase/eastwood "0.3.3"]
[lein-ring "0.9.7"]
Expand All @@ -89,7 +88,7 @@
:uberjar-name "byf.jar"
:min-lein-version "2.8.1"
:source-paths ["src/cljc" "src/clj" "src/cljs"]
:test-paths ["test/clj" "test/cljc"]
:test-paths ["test/clj" "test/cljc" "test/cljs"]
:ring {:handler byf.api/app}
:resource-paths ["resources"]

Expand All @@ -102,19 +101,15 @@
:aliases {"fig" ["trampoline" "run" "-m" "figwheel.main"]
"fig:build" ["trampoline" "run" "-m" "figwheel.main" "-b" "dev"]
"cljs-prod" ["run" "-m" "figwheel.main" "--build-once" "prod"]
"test-cljs" ["doo" "rhino" "test" "once"]
"kaocha" ["with-profile" "+kaocha" "run" "-m" "kaocha.runner"]
"kaocha" ["run" "-m" "kaocha.runner"]
"seed" ["run" "-m" "byf.seed"]}

:cljfmt {:indents {for-all [[:block 1]]
fdef [[:block 1]]
checking [[:inner 0]]}}

:profiles
{:kaocha {:dependencies [[lambdaisland/kaocha "0.0-541"]
[lambdaisland/kaocha-cloverage "0.0-32"]
[lambdaisland/kaocha-junit-xml "0.0-70"]]}
:uberjar {:hooks []
{:uberjar {:hooks []
:source-paths ["src/clj" "src/cljc"]
:prep-tasks [["compile"]
["cljsbuild" "once" "min"]]
Expand All @@ -134,7 +129,11 @@

:env {:environment :dev}

:dependencies [[binaryage/devtools "0.9.10"]
:dependencies [[lambdaisland/kaocha "1.0.700"]
[lambdaisland/kaocha-cloverage "1.0.75"]
[lambdaisland/kaocha-junit-xml "0.0.76"]
[lambdaisland/kaocha-cljs "0.0-71"]
[binaryage/devtools "0.9.10"]
[cider/piggieback "0.4.1"]
[org.mozilla/rhino "1.7.11"]
[day8.re-frame/re-frame-10x "0.4.3"]
Expand All @@ -143,13 +142,7 @@
[ring/ring-mock "0.4.0"]]}}
:cljsbuild
{:builds
[{:id "test"
:source-paths ["src/cljs" "src/cljc" "test/cljs" "test/cljc"]
:compiler {:output-to "target/unit-test.js"
:main 'byf.runner
:optimizations :whitespace}}

{:id "min"
[{:id "min"
:source-paths ["src/cljs" "src/cljc"]
:compiler {:main byf.core
:output-to "resources/public/cljs-out/dev-main.js"
Expand Down
11 changes: 0 additions & 11 deletions test/cljs/byf/runner.cljs

This file was deleted.

17 changes: 15 additions & 2 deletions tests.edn
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
#kaocha/v1
{:capture-output? true
:color? true}
{:capture-output? false
:color? true
:tests [{:id :clj
:type :kaocha.type/clojure.test
:test-paths ["test/cljc" "test/clj"]}

{:id :cljs
:type :kaocha.type/cljs
;; :launch-browser false
:launch-command ["google-chrome-stable" "http://localhost:3335"]
:test-paths ["test/cljs" "test/cljc"]
;; :cljs/timeout 10000 ; 10 seconds, the default
;; :cljs/repl-env cljs.repl.node/repl-env ; node is the default
:cljs/repl-env figwheel.repl/repl-env
}]}