-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathbb_test_runner.clj
More file actions
42 lines (36 loc) · 1.25 KB
/
bb_test_runner.clj
File metadata and controls
42 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
;; run via ./bin/bb-test-runner.sh
(ns bb-test-runner
(:require [clojure.test :as t]
[babashka.classpath :as cp]))
(def require-nsyms ['java-time.joda
'java-time.core
'java-time.properties
'java-time.util
'java-time.temporal
'java-time.amount
'java-time.zone
'java-time.single-field
'java-time.local
'java-time.chrono
'java-time.convert
'java-time.sugar
'java-time.seqs
'java-time.adjuster
'java-time.interval
'java-time.format
'java-time.clock
'java-time.pre-java8
'java-time
'java-time.api
])
(def test-nsyms ['java-time-test
'java-time.api-test
'java-time.graph-test])
(some->> (seq (concat require-nsyms test-nsyms))
(apply require))
(def test-results
(apply t/run-tests test-nsyms))
(def failures-and-errors
(let [{:keys [:fail :error]} test-results]
(+ fail error)))
(System/exit failures-and-errors)