Skip to content

Leiningen plugin that lists test namespaces based on code diffs

Notifications You must be signed in to change notification settings

kapilreddy/lein-test-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Leiningen plugin that lists test namespaces based on code diffs

Resources

Stars

Watchers

Forks

Packages