Skip to content

Add support for LazyTest? #48

@seancorfield

Description

@seancorfield

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions