marick / Midje

Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
MIT License
1.69k stars 129 forks source link

Adding irrelevant-value checker #444

Closed MDIB closed 6 years ago

MDIB commented 6 years ago

Adding this checker because we faced a situation where we didn't catch a bug because the test was broken it wasn't testing anything. eg

(partial my-side-effect-fn! arg) => irrelevant

this could be easily solved using this new checker:


(partial my-side-effect-fn arg) => irrelevant-value  ;;this would make the fact around it fail