An REPL oriented testing framework for clojure and clojurescript
tst is a testing library for clojure(script) that is designed to be used from the REPL. In this article, I'm going to describe how to use it.The base API consists of two entities, the macro testing and the function run-test.Defining a test suitetesting macro is used to define the test suite tree. The leaf nodes in this tree will contain the testing logic and the inner nodes will be used to group multiple test suites. An invocation of the testing macro returns a test suite as a value:(def suite1 (testing :test [] {:result :OK :message "A simple test suite")) The first argument to the macro is the name of the test suite (:test in this cas...
Tags: Repl, Clojurescript, Clojure, Testing, Productivity, Functional Testing
Continue reading