Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

miorimmax/midje-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

midje-runner

midje-runner is a small library for discovering and running tests in projects using native Clojure deps (i.e, those that use only Clojure's built-in dependency tooling, not Leiningen/boot/etc.).

It is heavily inspired on Cognitect's test-runner.

Usage

Include a dependency on this project in your deps.edn. You will probably wish to put it in test alias. You can also include the main namespace invocation using Clojure's :main-opts key. For example:

:aliases {:test {:extra-paths ["test"]
                 :extra-deps {midje-runner {:git/url "git@github.com:miorimmax/midje-runner"
                                            :sha "git sha from master"}}
                 :main-opts ["-m" "midje-runner.runner"]}}

Then, invoke Clojure via the command line, invoking the test alias:

clj -Atest

This will scan your project's test directory for any tests defined using Midje and run them.

About

proof-of-concept of a native test runner taking inspiration from Cognitect's test-runner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published