-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't discard all information about passing tests immidately #25483
Comments
I believe the fact that information about passing tests is discarded is actually deliberate. I'm having a difficult time finding a discussion here on GitHub, but I recall that there was an issue with the amount of memory that large test sets were racking up since they were retaining too much information. I thought the resolution to that was to discard information about passes, but I could be misremembering this entirely. |
I think that is covered by discarding the whole Lines 663 to 666 in 6a45619
It doesn't need to be empty when discarded -- it is being constructed (with |
|
Just bumping this, as retaining the pass information will help greatly in the writing of test reports which we are doing in TestReports.jl. I've got the changes ready for a PR here, but first it'd be good to have confirmation here that this will not have any negative performance impacts (because of the changes made in #20150). |
Remove printing of detailed Pass information, not used before this change
Remove printing of detailed Pass information, not used before this change
Remove printing of detailed Pass information, not used before this change
Right now the testing infrastructure itself discards all information for passing tests.
The
Pass
result type has fields for all the information, and a show method that would display it, but they are all blanked out withnothing
etc as their values.julia/stdlib/Test/src/Test.jl
Line 432 in 6a45619
Determining whether or not to do this should not be done there.
It should be done in the
record
method of the testset.That way it can be configured.
record(::DefaultTestSet, ::Pass)
already discards the pass result entirely anyway.I don't even think doing it later will cost memory, all that information is being captured anyway so that it can be reported for Failure/
The text was updated successfully, but these errors were encountered: