lazytest

seancorfield 2024-11-21T07:15:53.856029Z

I was under the impression that using set-ns-context! with around would call it just once for the entire ns, but it seems to call it for each defdescribe -- is that intentional? How do you get a once-per-ns fixture invoked?

2024-11-21T14:38:08.267449Z

oh hmmm

2024-11-21T15:42:21.015209Z

okay, figured it out

seancorfield 2024-11-21T18:09:14.784469Z

Is it a bug?

2024-11-21T18:09:25.966889Z

yes

2024-11-21T18:10:39.111619Z

got distracted while updating the expectations port to message

seancorfield 2024-11-21T18:16:33.078359Z

Maybe a 1.4.1 release with that fix? 🙂

2024-11-21T18:18:01.270209Z

sure thing

👍🏻 1
2024-11-21T18:30:19.753609Z

also updates Expectations to have everything except the defexpect and expecting and other clojure.test functions

2024-11-21T18:42:52.924689Z

i'll be online all day if that isn't a fix enough

seancorfield 2024-11-21T18:44:26.349169Z

Nice! Thank you. Clearing up after an Elastic Search cluster failure this morning, then I'll get back to the LazyTest stuff I'm working on (which I abandoned halfway last night due to this issue).

👍 1
seancorfield 2024-11-21T19:30:52.378169Z

Confirmed 1.4.1 fixes the :once fixture semantics -- thank you! In trying to migrate a bunch of tests from Expectations to LazyTest, I ran across a bug in Expectations, so I'll have to push this to a branch at work, while I get on with my actual work, and then I'll return to it after lunch and let you know if I ran into any other issues migrating stuff (I'm relying on the lazytest.extensions.expectations ns for this).