/lein-test-diff

Leiningen plugin that lists test namespaces based on code diffs

Primary LanguageClojure

lein-test-diff

A leiningen plugin that lists tests that are affected by a code change.

Usage

To install lein-test-diff, just add the following to your ~/.lein/profiles.clj or project.clj

{:user {:plugins [lein-test-diff ["0.0.1-SNAPSHOT"]]}}

Run this to get list of files that are affected by code change

git diff HEAD~ --name-only | lein test-diff

You can also pipe it to a test runner

git diff HEAD~ --name-only | lein test-diff | lein test

License

Copyright © 2017 Kapil Reddy

Distributed under the Eclipse Public License, the same as Clojure.