Skip to content

Commit

Permalink
add kaocha
Browse files Browse the repository at this point in the history
  • Loading branch information
dazld committed Jan 26, 2020
1 parent 4727ed2 commit cfd663f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
29 changes: 12 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,22 @@ version: 2
jobs:
build:
docker:
- image: circleci/clojure:tools-deps

working_directory: ~/repo

environment:
LEIN_ROOT: "true"
JVM_OPTS: -Xmx3200m

- image: circleci/clojure:tools-deps-1.10.0.442-node
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "deps.edn" }}

- run: clojure -R:test -e ""

- 'clj-v1-{{ checksum "deps.edn" }}' # -{{ checksum "package-lock.json" }}'
- 'clj-v1'
# - run: npm install
- run: mkdir -p test-results
- run: bin/kaocha --plugin kaocha.plugin/junit-xml --junit-xml-file test-results/kaocha/results.xml
- store_test_results:
path: test-results
- save_cache:
key: 'clj-v1-{{checksum "deps.edn"}}' #-{{ checksum "package-lock.json" }}'
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "deps.edn" }}

- run: clojure -A:test
- ~/.cljs/.aot_cache
- ~/node_modules
- ~/.gitlibs
3 changes: 3 additions & 0 deletions bin/kaocha
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

#!/usr/bin/env bash
clojure -A:test -m kaocha.runner "$@"
16 changes: 9 additions & 7 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{:paths ["src"]
:deps {edn-query-language/eql {:mvn/version "0.0.9"}
aysylu/loom {:mvn/version "1.0.2"}}
:deps {edn-query-language/eql {:mvn/version "0.0.9"}
aysylu/loom {:mvn/version "1.0.2"}}

:aliases {:provided {:extra-deps {org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/clojurescript {:mvn/version "1.10.597"}}}
:test {:extra-paths ["test" "dev"]
:extra-deps {com.datomic/datomic-free {:mvn/version "0.9.5697"
:exclusions [joda-time
commons-codec]}
com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git"
:sha "f7ef16dc3b8332b0d77bc0274578ad5270fbfedd"}}
:extra-deps {lambdaisland/kaocha {:mvn/version "0.0-565"}
lambdaisland/kaocha-cljs {:mvn/version "0.0-59"}
lambdaisland/kaocha-junit-xml {:mvn/version "0.0-70"}
com.datomic/datomic-free {:mvn/version "0.9.5697"
:exclusions [joda-time commons-codec]}
com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git"
:sha "f7ef16dc3b8332b0d77bc0274578ad5270fbfedd"}}
:main-opts ["-m" "cognitect.test-runner"]}}}
5 changes: 5 additions & 0 deletions tests.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#kaocha/v1
{:tests [{:id :unit
:type :kaocha.type/clojure.test}
{:id :unit-cljs
:type :kaocha.type/cljs}]}

0 comments on commit cfd663f

Please sign in to comment.