Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 723 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 723 Bytes

minitest

A minimal test library for zepto. It is in early alpha.

Usage

The following endpoints are exposed:

(assert-equal 1 1)
(assert-not-equal 1 0)
(assert-true #t)
(assert-false #f)
(assert-truthy [:non-empty-list])
(assert-falsy {})
(assert-nil (nil))
(assert-not-nil :any-val)
(all-passed) ; returns a boolean signifying whether all tests have passed
(exit-first-fail #t) ; if this is set to true, the program exits once a test fails
(results) ; prints test results
(colorize) ; colorizes test output

A minimal script named zepto_tests is also included. Usage looks somewhat like this:

$ zepto zepto_tests test.zp # this will run the file test.zp and print results

Have fun!