spacehammer icon indicating copy to clipboard operation
spacehammer copied to clipboard

Improve Testing Interfaces

Open jaidetree opened this issue 4 years ago • 1 comments

Following up to #106:

  • [ ] Replace describe with a macro similar to Clojure's testing macro
  • [ ] Replace it with a macro similar to Clojure's deftest macro
  • [ ] Replace is assertions with Clojure's is macro

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.

jaidetree avatar Sep 11 '21 19:09 jaidetree

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.

jaidetree avatar Sep 11 '21 19:09 jaidetree