Skip to content

Commit fbea650

Browse files
committed
Implemented test runnner for metrics-clojure-core deps.edn
1 parent c5c2182 commit fbea650

File tree

6 files changed

+38
-5
lines changed

6 files changed

+38
-5
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ checkouts/*
1414

1515
.portal
1616
.lsp/.cache
17-
.clj-kondo/.cache
17+
.clj-kondo/.cache
18+
**/.calva/

Diff for: metrics-clojure-core/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
target/*
22
.nrepl*
3+
.cpcache

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

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
{:paths ["src" "resources"],
22
:deps
3-
{org.clojure/clojure {:mvn/version "1.8.0"},
4-
io.dropwizard.metrics/metrics-core {:mvn/version "4.0.5"},
3+
{io.dropwizard.metrics/metrics-core {:mvn/version "4.0.5"},
54
io.dropwizard.metrics/metrics-jmx {:mvn/version "4.0.5"}},
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+
:extra-deps {org.slf4j/slf4j-simple {:mvn/version "2.0.9"}}}
10+
:test {:extra-deps {org.slf4j/slf4j-simple {:mvn/version "2.0.9"}
11+
lambdaisland/kaocha {:mvn/version "1.87.1366"}}
12+
:exec-fn kaocha.runner/exec-fn
13+
:exec-args {}}
14+
:watch-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 {:watch? true
18+
:skip-meta :slow
19+
:fail-fast? true}}}
620
:mvn/repos
721
{"sonatype"
822
{:url "http://oss.sonatype.org/content/repositories/releases",

Diff for: metrics-clojure-core/test/metrics/test/core_test.clj

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44

55
(deftest regression-default-registry-tag
66
(testing "Ensure default-registry no longer has invalid reflection :tag"
7-
(.getMeters core/default-registry)))
7+
(is (instance? java.util.Collections$UnmodifiableSortedMap
8+
(.getMeters core/default-registry)))))

Diff for: metrics-clojure-core/test/metrics/test/timers_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
(is (= (mt/time! deftimered (sleep-100)) 100))
2727
(is (> (mt/rate-mean deftimered) 0.0))
2828
(is (= (mt/rate-mean deftimered-3-arity) 0.0))
29-
(is (= (mt/time! deftimered-3-arity (sleep-100))))
29+
(is (= (mt/time! deftimered-3-arity (sleep-100)) 100))
3030
(is (> (mt/rate-mean deftimered) 0.0))))
3131

3232

Diff for: metrics-clojure-core/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)