Does RackUnit provide a facility similar to the setup & teardown functions of other unit testing frameworks? In other words, I'd like to execute some code before each test w/o coding each test to call a setup function or having to create my own macro given how common this is.
As far as I can tell, neither the #:before of test-suite nor the before macro accomplish this. In fact, I haven't been able to discern the purpose of the before macro because the following seem equivalent to me: (before before-expr expr1 expr2) before-expr expr1 expr2 At least with the after macro, there is a guarantee that the after-expr will be evaluated in the face of exceptions. Also, as I mentioned in IRC, I just discovered that the setup function in Elixir (the love child of Erlang and Ruby :) returns an expression that each test accepts as input. This is more functional than the traditional approach of the setup function mutating a variable that the test cases access and allows the tests to run concurrently in the same file. Might be worth adding to a wishlist for future versions of RackUnit. Thanks, Brian -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.