zjx20 / googletest

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

RecordProperty calls outside of a test should show up in output XML. #250

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Attributes recorded by such RecordProperty calls should show up as 
attributes to the top level testsuites element in XML output. Currently 
information logged by such calls is lost.

Original issue reported on code.google.com by vladlosev on 28 Jan 2010 at 9:37

GoogleCodeExporter commented 9 years ago

Original comment by vladlosev on 29 Jan 2010 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 6 Mar 2010 at 5:58

GoogleCodeExporter commented 9 years ago
I'm willing to "won't fix" this.  Having test logic outside of the lifespan of 
a TEST is undefined behavior anyway.

Original comment by w...@google.com on 27 Sep 2010 at 7:14

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 27 Sep 2010 at 7:14

GoogleCodeExporter commented 9 years ago
This feature, to log info in 'testsuites', would be quite useful.

Right now I am writing a test for a library and I wish to record its 
version/configuration/build-info of that particular library into the XML file. 
Such info is independent of tests, and can't be encoded into the XML file name.

To not confuse the API, instead of ::testing::Test::RecordProperty, gtest could 
have something like ::testing::RecordProperty to do this.

Original comment by fpa...@gmail.com on 1 Dec 2011 at 5:46

GoogleCodeExporter commented 9 years ago
This has been committed in revision 648.

Original comment by vladlosev on 5 Apr 2013 at 8:53