Skip to content

Commit 5381a31

Browse files
committed
add(#4): launch tests in CI
1 parent fe1927a commit 5381a31

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
restore-keys: cljdeps-
4141

4242
- name: Run tests
43-
run: echo "TODO"
43+
run: make test
4444

4545
- name: Build uberjar
4646
run: |

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
build-jar:
22
clj -T:build uberjar
33

4+
test:
5+
clj -M:test -m kaocha.runner
46

57
PATH_TO_JAR := $(project_dir)/$(jar_path)
68

deps.edn

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77

88
:aliases
99
{:dev {:extra-paths ["dev"]}
10+
1011
:test {:extra-paths ["tests"]
11-
:deps {com.health-samurai/matcho {:mvn/version "0.3.11"}}}
12+
:exec-fn kaocha.runner/exec-fn
13+
:extra-deps {com.health-samurai/matcho {:mvn/version "0.3.11"}
14+
lambdaisland/kaocha {:mvn/version "1.91.1392"}}}
1215

13-
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.10.4"}}
16+
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.10.5"}}
1417
:ns-default build}}}

tests.edn

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{:kaocha/tests [{:kaocha.testable/type :kaocha.type/clojure.test
2+
:kaocha.testable/id :unit
3+
:kaocha/ns-patterns ["-test$"]
4+
:kaocha/source-paths ["src"]
5+
:kaocha/test-paths ["tests"]}]
6+
:kaocha/fail-fast? false
7+
:kaocha/color? true
8+
:kaocha/reporter [#_kaocha.report/dots
9+
kaocha.report/documentation
10+
#_kaocha.report.progress/report]
11+
:kaocha/plugins [:kaocha.plugin/randomize
12+
:kaocha.plugin/filter
13+
:kaocha.plugin/profiling]
14+
:kaocha.plugin.randomize/randomize? true
15+
:kaocha.plugin.profiling/count 3
16+
:kaocha.plugin.profiling/profiling? true}

0 commit comments

Comments
 (0)