spacehammer
spacehammer copied to clipboard
Improve Testing Interfaces
Following up to #106:
- [ ] Replace
describewith a macro similar to Clojure'stestingmacro - [ ] Replace
itwith a macro similar to Clojure'sdeftestmacro - [ ] Replace
isassertions with Clojure'sismacro
Switching to macros here will cleanup the test code and in the case of Clojure's is, macro it has the ability to print both the expected\actual mismatch plus the test code itself in results.
One expected caveat is that every testfile may have to import the testing macros vs. global functions, but that also means alternative testing libraries are possible.