Write a test case which calls t.Log or t.Logf
The output of these logs is generated when a test fails. If i am using a CI for testing, it makes my job much easier if i can correlate test log timestamps with other logs captured by CI
What did you expect to see?
The t.Log statements should produce timestamps.
What did you see instead?
2020/01/20 21:15:05 GetValue called
--- FAIL: TestGetValue (0.00s)
main_test.go:9: this is log statement
main_test.go:11: this is error log statement
main_test.go:12: expected 100
exit status 1
FAIL github.com/vimalk78/test-testing 0.001s
The text was updated successfully, but these errors were encountered: