Skip to content

Commit 3329f1f

Browse files
committed
Fix watch-test.
1 parent 14afcb2 commit 3329f1f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/unit/kaocha/watch_test.clj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,16 @@
133133

134134
(is (str/includes?
135135
@out-str
136-
(str/replace
136+
(str/replace
137+
(str/replace
137138

138-
"[(F)]\n\nFAIL in foo.bar-test/xxx-test (bar_test.clj:1)\nExpected:\n :xxx\nActual:\n -:xxx +:yyy\n1 tests, 1 assertions, 1 failures.\n\n[watch] Reloading #{foo.bar-test}\n[watch] Re-running failed tests #{:foo.bar-test/xxx-test}\n[(F)]\n\nFAIL in foo.bar-test/xxx-test (bar_test.clj:1)\nExpected:\n :xxx\nActual:\n -:xxx +:zzz"
139+
"[(F)]\n\nFAIL in foo.bar-test/xxx-test (bar_test.clj:1)\nExpected:\n :xxx\nActual:\n -:xxx +:zzz\n1 tests, 1 assertions, 1 failures.\n\nbin/kaocha --config-file PATH --focus 'foo.bar-test/xxx-test'\n\n[watch] Reloading #{foo.bar-test}\n[watch] Re-running failed tests #{:foo.bar-test/xxx-test}\n[(F)]\n\nFAIL in foo.bar-test/xxx-test (bar_test.clj:1)\nExpected:\n :xxx\nActual:\n -:xxx +:zzz"
139140

140141
"foo"
141-
prefix)))))
142+
prefix)
143+
"PATH"
144+
(str config-file)
145+
)))))
142146

143147
(deftest ignore-files-merged
144148
(let [{:keys [_config-file test-dir] :as m} (integration/test-dir-setup {})]

0 commit comments

Comments
 (0)