jncornett / googletest

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

Enhance the Macros to enable the user to Specify Comments for TestCase and Test. #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be useful for reporting purposes if user could add short comment 
for TestCase and Test.

I see the function MakeAndRegisterTestInfo(...) has test_case_comment and 
comment as parameters but they were not exposed via Macros like (TEST, 
TEST_F ..etc).

Original issue reported on code.google.com by tmrao...@gmail.com on 31 Oct 2008 at 3:14

GoogleCodeExporter commented 9 years ago
Can you give some concrete examples on how this might help you?  What syntax do 
you 
propose to use?  Thanks.

Original comment by shiq...@gmail.com on 31 Oct 2008 at 6:32

GoogleCodeExporter commented 9 years ago
What we have been practicing is to give the test descriptive names such that 
you 
don't need the comments.  For example,

TEST(FileTest, CanOpenATextFileInReadOnlyMode) { ... }

When this fails, you know that your code cannot open a text file in read-only 
mode.

Original comment by shiq...@gmail.com on 31 Oct 2008 at 6:40

GoogleCodeExporter commented 9 years ago
We decide to close this bug as the test names are meant to be descriptive.

Original comment by shiq...@gmail.com on 4 Nov 2008 at 10:23