-
-
Notifications
You must be signed in to change notification settings - Fork 56.3k
Reduce G-API tests number #21909
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
Reduce G-API tests number #21909
Conversation
…om/dbudnikov/opencv into dbudnikov/reduce_gapi_tests_number
These changes reduce overall number of G-API tests by ~25% and overall G-API test suite execution time by ~20%. |
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.
If we still have cases with multiple resolutions, I'd propose to declare a constant vector of the sizes once and for all tests - and use ValuesIn(...)
in the test instantiations
Values(cv::Size(1920, 1080), | ||
cv::Size(1280, 720), | ||
cv::Size(640, 480), |
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.
This selection looks strange. Shouldn't the 1080
option be removed & 720
be kept as in the previous file?
As far I can see, the below cases also instantiate 720
and not 1080
.
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.
Done
Values(cv::Size(1920, 1080), | ||
cv::Size(1280, 720), | ||
cv::Size(640, 480), | ||
cv::Size(128, 128)), |
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.
Maybe we should declare the list of resolutions we test one and for all the tests? Then ValuesIn(...)
could be used.
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.
Done
ebed694
to
18ca503
Compare
18ca503
to
1f9882b
Compare
…tests_number Reduce G-API tests number * reduce number of G-API tests * reduce number of G-API tests * Address more comments from Dmitry.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.