-
Notifications
You must be signed in to change notification settings - Fork 851
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
Bug2611 #2680
Bug2611 #2680
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #2680 +/- ##
==========================================
- Coverage 67.06% 66.96% -0.10%
==========================================
Files 99 100 +1
Lines 20149 20135 -14
==========================================
- Hits 13512 13483 -29
- Misses 6637 6652 +15
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
That's almost good, but I'd do it a little bit differently. As you can see, some tests do test the call to In tests that use fixtures there's no use of it, and your solution there is actually wrong. The SetUp and TearDown functions are provided because they are called before and after every test, not at the initialization and destruction of the fixture. In tests where it is approved to make startup/cleanup calls for the whole suite in the fixture, the |
Thank you for the feedback. I will rework the approach. |
closing this PR - #2681 fixes Bug2611, and provides approach for consistent startup/cleanup utilizing singleton class. |
PR proposes a solution to #2611 that provides a RAII class and implementation within srt/test, updates srt/test/filelist.maf, and declares the object within TEST macros and TEST_F classes.