mercredi 7 février 2018

GTest change output of failure

I have written a Parameterized Gtest using a struct I made as the parameter value. When the test fails it writes a byte object of the struct like so:

[  FAILED  ] RulesNoProcessing/StressTest.MainTest/2, where GetParam() = 
             40-byte object <01-12 00-00 02-00 00-00 F4-01 00-00 ...>.

Is there anyway way that I can customize the output? I know that there is predicate formats for assertions but I need to do something similar with the actual outcome of the test. If anyone can I help I would really appreciate it!

Aucun commentaire:

Enregistrer un commentaire