Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Latest commit

 

History

History
47 lines (29 loc) · 1.14 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.14 KB

scantest

A simple, responsive (a word which here means 'snappy') test runner. Like GoConvey, but smarter about what package to run, and with a much simpler interface, and at a fraction of the LOC.

Features

  • Runs make or go test or any command you supply whenever a .go file in any package under the current directory changes.
  • Provides colorful output according to exit status of tests (green=passed, red=failed).

Installation

go get github.com/smartystreets/scantest

Console Runner Execution

cd my-project
scantest

Results of your tests will display in the terminal until you enter <ctrl>+c.

Can I run it in the browser?

Yes, with gotty:

$ gotty scantest

Open a web browser to http://localhost:8080 to see the auto-updating results.

Custom Go Test Arguments

Simple supply a Makefile in the current directory and specify what command and arguments to run. Then just run scantest (it will find your makefile and run the default action, which you can change whenever necessary).

Example:

#!/usr/bin/make -f

test:
    go test -v -short -run=TestSomething -race