Skip to content

zepto-lang/minitest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A minimal testing library for zepto

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published