Add colors to shUnit2 output.
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitattributes
.gitignore
LICENSE
README.md

README.md

shunit2-colorize

Add colors to shUnit2 output.

Usage

#!/usr/bin/env bash

function testFailedColors () {
	assertEquals 'This will fail' 'true' 'false'
}

source "${BASH_SOURCE%/*}/shunit2-colorize.sh"

# Requires shUnit2.
# https://code.google.com/p/shunit2/
[[ -z $(which shunit2) ]] && { echo "shunit2 is required." >&2; exit 1; }
source shunit2 |& colorizeShUnit2

Kudos


License

Copyright (c) 2015 Joel Purra http://joelpurra.com/ All rights reserved.

When using shunit2-colorize, comply to the MIT license. Please see the LICENSE file for details.