abakiaydin / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Using RecordProperty without XML output #198

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run a test and call 'RecordProperty'
2. This works when using XML output just fine
3. Without XML output (writting to stdout) this information is lost

What is the expected output? What do you see instead?

Using RecordProperty without XML output doesnt appear to have much use (may be 
wrong).
I appreciate it was added specifically for XML output.
Im looking for a consistent way to log a bit of extra information when a test 
is run (e.g. a cpu 
performance test - saying 'UserTimeCPU = x"
Something like a printf would do the same job for me, but when I swap to XML 
output I have to 
rely on RecordProperty instead - so Im doing 2 different bits of code for 2 
different outputs. 
Might be cool if RecordProperty acted differently depending on output, since 
its a method 
related to output.

What version of the product are you using? On what operating system?
Linux, gtest-1.3.0

Many thanks

Original issue reported on code.google.com by simonsha...@gmail.com on 18 Sep 2009 at 9:30

GoogleCodeExporter commented 9 years ago
Sounds good.

Original comment by zhanyong...@gmail.com on 18 Sep 2009 at 5:10