If you have many test namespaces it's idiomatic to create a test runner namespace which imports all of your test namespaces and then invokes run-testsI personally couldn't get it to work. Though I have managed to make run-all-tests works. This is an example
(ns myns.test.runner (:require [cljs.test :refer-macros [run-all-tests]] [myns.test.ns1] [myns.test.ns2])) (run-all-tests #"myns.test.*")
No comments:
Post a Comment