Add the gtest include dir only to muse_global instead of every module - #268
Add the gtest include dir only to muse_global instead of every module#268luapmartin wants to merge 1 commit into
Conversation
…END_TEST, instead of every module
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change removes the GoogleTest source include path from Merge Risk: ⚪ Minimal · up to The change limits GoogleTest headers to the production target that requires them while leaving test targets unaffected. Full build and test verification passed, and no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) Full details: Description checkExplanation The description includes the issue reference, motivation, implementation details, testing results, and completed checklist. The unchecked unit-test item is reasonably applicable because this build-configuration change was verified through existing tests. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/build |
|
Build dispatched: https://github.com/musescore/muse_framework/actions/runs/33692751686 |
Resolves: audacity/audacity#11897
muse_create_module/declare_moduleadd the googletest include directory to every module unconditionally, so any production TU can include gtest headers — in the Audacity build that was 407 non-test TUs across all modules. The only production code that needs it islogremover.hinmuse_global(gtest_prod.h/FRIEND_TESTunderMUSE_ENABLE_UNIT_TESTS), so the include dir is now added there, guarded by the same option, and removed from the generic module setup. Test targets are unaffected:gtest.cmakealready adds the include dir to test executables.Verified against the Audacity build: only
muse_globaland googletest's own targets still see the gtest include dir; full build and 28/28 test suites pass.Build configuration
audacity: audacity/audacity/master
audacity platforms: linux_x64
musescore: musescore/MuseScore/main
musescore platforms: linux_x64