Fix up TestSuiteLogging in verbose mode

pull/74/head
Oliver Beattie 2014-08-17 17:34:01 +01:00
parent da775f0337
commit 8fb35d6c24
1 changed files with 9 additions and 2 deletions

View File

@ -154,6 +154,13 @@ func TestSuiteLogging(t *testing.T) {
assert.Nil(t, err, "Got an error trying to capture stdout!")
// Failed tests' output is always printed
assert.Contains(t, output, "TESTLOGFAIL")
if testing.Verbose() {
// In verbose mode, output from successful tests is also printed
assert.Contains(t, output, "TESTLOGPASS")
} else {
assert.NotContains(t, output, "TESTLOGPASS")
}
}