-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Currently, Cognitect's test-runner
supports any testing library that is compatible with clojure.test
, such as Expectations.
LazyTest is a new testing library that is built from scratch to provide a more expressive style than either clojure.test
or Expectations, and it addresses a lot of the criticisms that Sierra had about the implementation of clojure.test
. However, since it doesn't use the clojure.test
"runner" functions, tooling has to choose to explicitly add support for it.
I have a working fork of test-runner
that relies on requiring-resolve
(and therefore Clojure 1.10), to dynamically support LazyTest at runtime, if it is on the classpath. It matches most of the test-runner
CLI options to equivalent ones in LazyTest, and will use LazyTest "runner" functions to run any LazyTest tests it finds, in addition to using the clojure.test
"runner" functions to run any standard tests it finds.
It essentially makes two passes over the tests: the first for clojure.test
tests, and the second for LazyTest tests.