Closed snunez1 closed 2 years ago
The documentation provides some examples. If all you want is to provide some local bindings around your tests, the easiest is to just define a macro and wrap your stuff in that. The fixtures in parachute are meant to ensure global bindings stay the same.
I'm having a tough time figuring out
with-fixtures
. I'm trying to port tests from cl-unit, for example:If github is to be believed, @Shinmera doesn't use
with-fixtures
in any of his tests. At least a github search didn't turn anything up for that when searching the user repos. Sabra Crolleton's example uses functions/macros that don't seem to exist in Parachute, likedef-fixture
.Can anyone provide a simple example of using fixtures?