I have recently started using the Clojure test framework expectations. As part of my test, I have a data set that I want to reset to its original value before the start of a new test/expect statement.
In clojure.test, I would just create a fixture and call (use-fixtures :each my-fixture-fn).
I've searched for good examples of how to do this in expectations but haven't had any luck yet. Could anyone provide a concrete example of how to implement a fixture that runs before each test in expectations?
Aucun commentaire:
Enregistrer un commentaire