Skip to content

Commit 29c5b31

Browse files
authored
Switch to kaocha for better test report output (#174)
1 parent a15016e commit 29c5b31

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
${{ runner.os }}-maven-
9494
9595
- name: 🧪 Run tests
96-
run: bb test:clj
96+
run: bb test:clj :kaocha/reporter '[kaocha.report/documentation]'
9797

9898
static-build:
9999
runs-on: ubuntu-latest

bb.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
:task (clojure "-X:demo nextjournal.clerk/build-static-app!")}
4646

4747
test:clj {:doc "Run clojure tests"
48-
:task (clojure "-X:test")}
48+
:task (apply clojure "-X:test" *command-line-args*)}
4949

5050
test:static-app {:doc "Run UI tests for current SHA. Provide SHA as command line arg."
5151
:task (do

deps.edn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
:exec-fn nextjournal.clerk.dev-launcher/start}
4242

4343
:test {:extra-deps {nubank/matcher-combinators {:mvn/version "3.3.1"}
44-
io.github.cognitect-labs/test-runner {:git/tag "v0.5.0" :git/sha "b3fd0d2"}}
44+
lambdaisland/kaocha {:mvn/version "1.66.1034"}}
4545
:extra-paths ["test"]
46-
:exec-fn cognitect.test-runner.api/test
46+
:exec-fn kaocha.runner/exec-fn
4747
:jvm-opts ["-Dclerk.resource_manifest={\"/js/viewer.js\" \"http://localhost:7778/js/viewer.js\"}"]}
4848

4949
:demo {:extra-deps {com.github.seancorfield/next.jdbc {:mvn/version "1.2.659"}

resources/viewer-js-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2QomkaERveEgZwKtSGc6f95nabbt
1+
48mDrKojFRiqeHuKSr7Xr2KsQ14a

tests.edn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#kaocha/v1 {}

0 commit comments

Comments
 (0)