Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
Doco; release 1.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Mar 31, 2011
1 parent fb651da commit 38226fb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,27 @@

Run only the test namespaces which failed last time around.

## Usage
## Single-project Usage

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

: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.

## License

Copyright (C) 2011 Phil Hagelberg
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(defproject lein-retest "1.0.0-SNAPSHOT"
(defproject lein-retest "1.0.0"
:description "Run only the test namespaces which failed last time around."
:eval-in-leiningen true)
1 change: 1 addition & 0 deletions src/leiningen/retest.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(ns leiningen.retest
"Run only the test namespaces which failed last time around."
(:require [leiningen.test]))

(defn retest
Expand Down

0 comments on commit 38226fb

Please sign in to comment.