Capture test stats so they can be processed in the TearDownTest function#98
Open
sebastien-rosset wants to merge 3 commits intogo-check:v1from
Open
Capture test stats so they can be processed in the TearDownTest function#98sebastien-rosset wants to merge 3 commits intogo-check:v1from
sebastien-rosset wants to merge 3 commits intogo-check:v1from
Conversation
Author
|
@jhenstridge can you take a look at this PR? |
Contributor
|
I don't have commit rights on the project, so you'll still need @niemeyer to approve and merge the changes. I haven't really poked around in this part of the code much, but would this kind of thing make more sense to track through the You have access to the result object if you call |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, it is not possible to access the test stats (duration, nsperop, netBytes, netAllocs) within the TearDownTest() function. Since TearDownTest() is invoked after each test, it would be useful to have access to these stats attributes. For example, this could be used to write a TearDownTest() function that writes the results to a CSV file:
name,size,duration,nsPerOp
MyTest1,1,1253578,1.253578135s
MyTest2,1,178,1.789782398s
MyTest3,1,10642,5.321393621s