Fix rp_hierarchy_dirs and rp_hierarchy_test_file ignored when rp_hierarchy_code=False#410
Conversation
WalkthroughThe change narrows which leaf types are merged when forming code-related hierarchy. CODE and SUITE remain always-merged, while DIR and FILE are now conditionally merged based on Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Fixes #409
Summary
rp_hierarchy_codeisFalse(the default),_merge_code_with_separatorunconditionally mergesDIRandFILEleaf types, ignoring therp_hierarchy_dirsandrp_hierarchy_test_fileflagsrp_hierarchy_dirs=Trueorrp_hierarchy_test_file=TrueDIR/FILEin the merge set when their respective hierarchy flags areFalseTest plan
rp_hierarchy_dirs=Truenow correctly creates directory suites whenrp_hierarchy_codeis not set