lazytest

p-himik 2026-04-27T19:35:00.984319Z

Rewriting another project from clojure.test to lazytest. Trying to recall - describe is optional, right? And it isn't? Meaning expect has to be inside of it, but it can be without a parent describe.

👍 1
2026-04-27T19:38:40.160099Z

yes, describe is a fancier testing

2026-04-27T19:39:43.856859Z

it creates a "test case", a (wrapper around a) function that is executed for its assertions

p-himik 2026-04-27T19:47:53.939279Z

Alright, thanks!

seancorfield 2026-04-27T20:05:35.969159Z

There's also expect-it for one-shot tests (one assertion per-test) so you can omit the it around the single expect.

👍 1
p-himik 2026-04-27T20:06:15.352929Z

Ah, neat!