Added option to hide coverage on test failure

Added the option 'hideCoverageOnTestFailure' which suppresses coverage
output if any tests fail.