Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Run only the test namespaces which failed last time around.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 project.clj
README.md

lein-retest

Run only the test namespaces which failed last time around.

Single-project Usage

You'll need to add a :dependency, a :dev-dependency, and a :hook to project.clj:

:dependencies [[robert/hooke "1.1.0"]]
:dev-dependencies [[lein-retest "1.0.0"]]
:hooks [leiningen.hooks.retest]

Then each run of the tests will create a .lein-failures file in your project root recording which namespaces contained failures. Then running lein retest will re-run only those.

User-wide Usage

$ lein plugin install lein-retest 1.0.0

Add this to ~/.lein/init.clj

(require 'leiningen.hooks.retest)

Then you should be set to use it in all your projects, though each project will still need to have Robert Hooke as a :dependency for it to work.

License

Copyright (C) 2011 Phil Hagelberg

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

Something went wrong with that request. Please try again.