-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[RF] More improvements to roofitcore unit tests
#11995
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
[RF] More improvements to roofitcore unit tests
#11995
Conversation
Good testing is imporant, so it's also important to follow predictable conventions in unit tests. In RooFit, we have established that the name of all test files should match the `test*.cxx` patters. In this commit, all the files that don't match this pattern are renamed, and code-formatted on this occasion. Also, all the files in `roofit/roofitcore/test/TestStatistics` are reformatted because they almost followed the style anyway.
So far, most of the `RooNLLVar` test in `testTestStatistics` were hardcoded to only cover the BatchMode, but it's good if they also cover the legacy RooFit. Hence, all these tests were converted to parameterized tests that cover the BatchMode `"off"` and `"cpu"`. In the same go, all the unit tests in the same file are updated to silence unnecessary info printout.
|
Starting build on |
b2456b4 to
2eda409
Compare
|
Starting build on |
|
Build failed on ROOT-ubuntu18.04/nortcxxmod. Warnings:
And 1 more |
|
Build failed on ROOT-performance-centos8-multicore/cxx17. Warnings:
And 51 more |
|
Build failed on mac12/noimt. Warnings:
|
|
Build failed on ROOT-ubuntu2004/python3. Warnings:
|
|
Build failed on mac11/cxx14. Warnings:
|
* The ERROR printouts in the `createNLLModularLAndOffset` test are actually expected, so we now silence them using the "hijack" mechanism and check if they are inside the string * The `fitTo` test uses the multiprocess parallelization and can be turned on if roofit was built with `multiprocess` * Some memory leaks were fixed too
|
Starting build on |
9ac2873 to
dfed051
Compare
|
Starting build on |
|
Build failed on mac12/noimt. Warnings:
|
|
Build failed on ROOT-ubuntu18.04/nortcxxmod. Warnings:
|
|
Build failed on ROOT-ubuntu2004/python3. Warnings:
|
It's better to use Asimov datasets in the bin integration tests, because like this there is no randomness and it's much easier to separate bias from variance (as there is no variance). Also, this commit avoids some code duplication in `testTestStatistics`
dfed051 to
d406f6a
Compare
|
Starting build on |
|
Just a little fixup to fix the warning |
lmoneta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Jonas for the improvements in the tests!
|
Build failed on mac11/cxx14. Errors:
|
More detail in the commit descriptions.