Skip to content

Commit

Permalink
look like we can write a test for this easily, remove it
Browse files Browse the repository at this point in the history
  • Loading branch information
qnkhuat committed Jan 3, 2024
1 parent d5202e5 commit 4cb653d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/mb/hawk/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,3 @@
{:exclude-tags [:exclude-tags-test :another/tag]})
(is (not (contains? (set (hawk/find-tests nil {:exclude-tags [:exclude-tags-test]}))
#'find-tests-test))))

(deftest run-tests-n-times-test
(let [single-run-summary {:test 10
:pass 5
:fail 3
:error 2
:duration 1
:single-threaded 1}]
(with-redefs [hawk/run-tests (fn [& _args] single-run-summary)]
(testing "run single time"
(is (= single-run-summary
(hawk/find-and-run-tests-repl {:times 1}))))

(testing "run multiple will combine the summary of all the runs"
(is (= (apply merge-with + (repeat 3 single-run-summary))
(hawk/find-and-run-tests-repl {:times 3})))))))

0 comments on commit 4cb653d

Please sign in to comment.