0

Is there a way to get the ouput of gtest in a log file generated by glog ? Ideally it would stream with severity error when tests fail and info otherwise. I could do it manually but I was wondering if this can be done easily with existing tools.

I am only interested in glog outputs, not XML generated by gtest using RecordProperty.

vanna
  • 1,552
  • 5
  • 20
  • 35

1 Answers1

1

You can define a custom listener that will log test failures. You can see how it's doen in the Google Test sample code.

VladLosev
  • 7,296
  • 2
  • 35
  • 46