Skip to content

Commit

Permalink
Switch from matcher-combinators to regular equality.
Browse files Browse the repository at this point in the history
  • Loading branch information
alysbrooks committed Jul 29, 2023
1 parent 99f96f5 commit 2e7480e
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions test/unit/kaocha/watch_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -133,33 +133,32 @@
(w/qput q :finish)
(Thread/sleep 100)

(is (match?
(matchers/equals
["[(F)]"
""
(str/replace "FAIL in foo.bar-test/xxx-test (bar_test.clj:1)" "foo" prefix)
"Expected:"
" :xxx"
"Actual: "
" -:xxx +:yyy"
"1 tests, 1 assertions, 1 failures."
""
(format "bin/kaocha --config-file %s --focus '%s.bar-test/xxx-test'" (str config-file) prefix)
""
(str/replace "[watch] Reloading #{foo.bar-test}" "foo" prefix)
(str/replace "[watch] Re-running failed tests #{:foo.bar-test/xxx-test}" "foo" prefix)
"[(F)]"
""
(str/replace "FAIL in foo.bar-test/xxx-test (bar_test.clj:1)" "foo" prefix)
"Expected:"
" :xxx"
"Actual:"
" -:xxx +:zzz"
"1 tests, 1 assertions, 1 failures."
""
(format "bin/kaocha --config-file %s --focus '%s.bar-test/xxx-test'" (str config-file) prefix)
])
(str/split-lines @out-str)))))
(is (=
["[(F)]"
""
(str/replace "FAIL in foo.bar-test/xxx-test (bar_test.clj:1)" "foo" prefix)
"Expected:"
" :xxx"
"Actual:"
" -:xxx +:yyy"
"1 tests, 1 assertions, 1 failures."
""
(format "bin/kaocha --config-file %s --focus '%s.bar-test/xxx-test'" (str config-file) prefix)
""
(str/replace "[watch] Reloading #{foo.bar-test}" "foo" prefix)
(str/replace "[watch] Re-running failed tests #{:foo.bar-test/xxx-test}" "foo" prefix)
"[(F)]"
""
(str/replace "FAIL in foo.bar-test/xxx-test (bar_test.clj:1)" "foo" prefix)
"Expected:"
" :xxx"
"Actual:"
" -:xxx +:zzz"
"1 tests, 1 assertions, 1 failures."
""
(format "bin/kaocha --config-file %s --focus '%s.bar-test/xxx-test'" (str config-file) prefix)
]
(str/split-lines @out-str)))))

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

0 comments on commit 2e7480e

Please sign in to comment.