Fork me on GitHub
#testing
<
2022-04-18
>
vemv23:04:28

Would you characterize Midje as a good/great library? IIRC I don't like it but that might have been expectations (particularly before clojure-expectations/clojure-test became a thing). I think one of those created very strange interactions with the repl and other tooling.

plexus08:04:02

Midje code is... special. I've dug into it enough to try to add Midje support to Kaocha (we have a PoC but we recommend using Fudje instead if you really want that DSL), and my goodness it is not pretty... very convoluted and non-idiomatic. So no I would not characterize it as such.

👀 1
mauricio.szabo14:04:58

I want to mention that I also have a library called Check (http://gitlab.com/mauricioszabo/check) that builds up on both Expectations (although I need to update to the latest clojure.test version) and Nubank's Matcher Combinators that have a midje-inspired DSL (or a clojure test-inspired one - you choose) And obviously, it's WAY LESS magic than Midje, if you prefer that path 🙂

👍 1
seancorfield23:04:08

I would not characterize Midje as such, no, and I know there are some other folks who are pretty vocally in the same camp.

seancorfield23:04:54

Like the "Classic Expectations" library, it did not follow the clojure.test API so it has all of its own custom tooling and -- last I checked -- could not be run with standard test runners.

seancorfield23:04:41

In addition, a lot of people find its DSL to be non-idiomatic for Clojure (I think the DSL is horrible).

seancorfield23:04:52

If you feel the modern Expectations library -- the clojure.test-compatible one -- has shortcomings, LMK and I'll try to address them 🙂

1