Skip to content

Commit c5fb262

Browse files
committed
Implemented test runner for metrics-clojure-ring deps.edn
1 parent fbea650 commit c5fb262

File tree

4 files changed

+39
-3
lines changed

4 files changed

+39
-3
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ checkouts/*
1515
.portal
1616
.lsp/.cache
1717
.clj-kondo/.cache
18-
**/.calva/
18+
**/.calva/
19+
**/.cpcache

Diff for: metrics-clojure-ring/deps.edn

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
{:paths ["src" "resources"],
22
:deps
33
{cheshire/cheshire {:mvn/version "5.10.0"},
4-
metrics-clojure/metrics-clojure {:mvn/version "3.0.0-SNAPSHOT"}}}
4+
metrics-clojure/metrics-clojure {:mvn/version "2.2.0"}}
5+
:aliases {:clojure-1.9 {:extra-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}
6+
:clojure-1.11 {:extra-deps {org.clojure/clojure {:mvn/version "1.11.1"}}}
7+
:clojure-next {:extra-deps {org.clojure/clojure {:mvn/version "1.12.0-alpha5"}}}
8+
:dev {:extra-paths ["test"]
9+
:override-deps {metrics-clojure/metrics-clojure
10+
{:local/root "../metrics-clojure-core"}}
11+
:extra-deps {ring/ring {:mvn/version "1.4.0"}
12+
ring/ring-mock {:mvn/version "0.3.0"}
13+
org.slf4j/slf4j-simple {:mvn/version "2.0.9"}}}
14+
:test {:extra-deps {org.slf4j/slf4j-simple {:mvn/version "2.0.9"}
15+
lambdaisland/kaocha {:mvn/version "1.87.1366"}}
16+
:exec-fn kaocha.runner/exec-fn
17+
:exec-args {}}
18+
:watch-test {:extra-deps {org.slf4j/slf4j-simple {:mvn/version "2.0.9"}
19+
lambdaisland/kaocha {:mvn/version "1.87.1366"}}
20+
:exec-fn kaocha.runner/exec-fn
21+
:exec-args {:watch? true
22+
:skip-meta :slow
23+
:fail-fast? true}}}}

Diff for: metrics-clojure-ring/test/metrics/test/expose_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
(deftest test-expose-metrics-as-json
77
;; Ensure that ring.expose compiles
8-
(expose-metrics-as-json (constantly nil)))
8+
(is (instance? Object (expose-metrics-as-json (constantly nil)))))
99

1010
(deftest test-filter-matches?
1111
(is (true? (filter-matches? "ring.requests-scheme.rate.https" "")))

Diff for: metrics-clojure-ring/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 ["test"]}]
6+
:kaocha/fail-fast? false
7+
:kaocha/color? true
8+
:kaocha/reporter [kaocha.report/dots]
9+
:kaocha/plugins [:kaocha.plugin/randomize
10+
:kaocha.plugin/filter
11+
:kaocha.plugin/capture-output
12+
:kaocha.plugin/profiling]
13+
:kaocha.plugin.randomize/seed 950716166
14+
:kaocha.plugin.randomize/randomize? true
15+
:kaocha.plugin.profiling/count 3
16+
:kaocha.plugin.profiling/profiling? true}

0 commit comments

Comments
 (0)