ADFA-4313 Fix CompilerTest missing activity_layouteditor.xml fixture#1401
Conversation
Point both CompilerTest tests at the existing activity_editor.xml fixture instead of activity_layouteditor.xml, which was removed along with the deleted layouteditor/ module during the LayoutEditor refactor. The renamed fixture already exists in both referenced locations (app/src/main/res/layout and src/test/resources/layout). Surfaced by the nightly Jacoco/SonarQube analyze.yml run after ADFA-4306.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughRelease Notes
Note: Verify cleanup of any residual layouteditor module files to prevent future maintenance issues WalkthroughTwo fixture file path references in ChangesTest Fixture Path Update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
What
Both tests in
subprojects/aaptcompiler/.../CompilerTest.ktreferenced a fixture namedactivity_layouteditor.xmlthat no longer exists, causing:subprojects:aaptcompiler:testV8DebugUnitTestto fail in the nightly Jacoco/SonarQubeanalyze.ymlrun (surfaced after ADFA-4306 / #1385 landed).test simple compilatation->app/src/main/res/layout/activity_layouteditor.xmltest xml processor->src/test/resources/layout/activity_layouteditor.xmlRoot cause
activity_layouteditor.xmlonly ever lived in the now-deletedlayouteditor/module (removed in85a1a0713 "Editor fix"). The fixture both tests actually depend on was renamed toactivity_editor.xmland already exists in both referenced locations.Fix
Repoint both tests at the existing
activity_editor.xmlfixture (two one-line changes). No new files — keeps a single source of truth rather than restoring a duplicate from the deleted module.Verification
./gradlew :subprojects:aaptcompiler:testV8DebugUnitTest->tests=2 failures=0 errors=0(was 2 failing).sonarqube-driven suite run locally: the aaptcompilerCompilerTestfailures are gone; module failure count dropped by the expected 2. (The:sonarqubeupload step fails locally only due to noSONAR_TOKEN, which is expected.)Closes ADFA-4313.