A script that runs tests only when a file is modified
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
autotest.sh

README.md

AutoTestScript

AutoTestScript is a simple bash script that run tests continuously.

It works by continuously monitoring the files below the current directory. The impact on the hard disk has been found negligeable on a large-ish project (13,000 files, on a Mac Pro from 2009).

It works on Mac OSX and Ubuntu.

Installation

  1. Download the script
  2. Place it at the root of your project (or anywhere in your path) and chmod it to be executable.

Usage

Run the script with the appropriate test command in parameter.

./autorun.sh cake midje # to test a Clojure project using midje
./autorun.sh mvn verify # to test a Maven project