Skip to content

Commit 77334ed

Browse files
authored
Merge pull request #318 from lambdaisland/alys/update-ci-jdk
Add Java 17 and 19 to test matrix
2 parents 7e77da6 + c266ca1 commit 77334ed

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.1
22

33
orbs:
44
kaocha: lambdaisland/[email protected]
5-
clojure: lambdaisland/[email protected].4
5+
clojure: lambdaisland/[email protected].8
66
win: circleci/[email protected]
77

88
jobs:

test/features/command_line/print_config.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ Feature: CLI: Print the Kaocha configuration
1111

1212
Scenario: Using `--print-config`
1313
When I run `bin/kaocha --print-config`
14-
Then the output should contain:
14+
Then the EDN output should contain:
1515
""" clojure
1616
{:kaocha.plugin.randomize/randomize? false,
1717
:kaocha/reporter [kaocha.report/dots],
1818
:kaocha/color? false,
19-
:kaocha/fail-fast? false,
19+
:kaocha/fail-fast? false}
2020
"""
21-
And the output should contain:
21+
And the EDN output should contain:
2222
""" clojure
23-
:kaocha/tests
23+
{:kaocha/tests
2424
[{:kaocha.testable/type :kaocha.type/clojure.test,
2525
:kaocha.testable/id :unit,
2626
:kaocha/ns-patterns ["-test$"],
2727
:kaocha/source-paths ["src"],
2828
:kaocha/test-paths ["test"],
29-
:kaocha.filter/skip-meta [:kaocha/skip]}],
29+
:kaocha.filter/skip-meta [:kaocha/skip]}]}
3030
"""

test/step_definitions/kaocha_integration.clj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
(ns features.steps.kaocha-integration
22
^{:clojure.tools.namespace.repl/load false
33
:clojure.tools.namespace.repl/unload false}
4-
(:require [clojure.java.io :as io]
4+
(:require [clojure.edn :as edn]
5+
[clojure.java.io :as io]
56
[clojure.java.shell :as shell]
67
[clojure.string :as str]
78
[clojure.test :as t :refer :all]
@@ -64,6 +65,13 @@
6465
(is (not (str/includes? (:out m) output)))
6566
m)
6667

68+
(Then "the EDN output should contain:" [m output]
69+
(let [actual (edn/read-string (:out m))
70+
expected (edn/read-string output)]
71+
(is (= (select-keys actual (keys expected)) expected)))
72+
m)
73+
74+
6775
(Then "stderr should contain" [m output]
6876
(is (substring? output (:err m)))
6977
m)

0 commit comments

Comments
 (0)