Skip to content

Add warning metadata regression coverage#4

Draft
cursor[bot] wants to merge 4 commits into
masterfrom
cursor/regression-test-coverage-93f7
Draft

Add warning metadata regression coverage#4
cursor[bot] wants to merge 4 commits into
masterfrom
cursor/regression-test-coverage-93f7

Conversation

@cursor

@cursor cursor Bot commented May 21, 2026

Copy link
Copy Markdown

Summary

  • Add focused JUnit coverage for plugin commit-descriptor warning= metadata.
  • Verify warning text is copied into generated display metadata before packaging continues.

Risky Behavior Now Covered

Recent merged descriptors can include user-facing warning text, such as IP-address disclosure. This test guards against regressions that would drop that warning from display metadata.

Test Files Added/Updated

  • package/package/src/test/java/net/runelite/pluginhub/packager/PluginTest.java

Why This Reduces Regression Risk

Warnings communicate material user safety/privacy information. If warning propagation breaks, plugins may still package without surfacing that disclosure to users. The test is deterministic and avoids the existing nested plugin-build path that is environment-dependent.

Validation

  • ./gradlew --console=plain prep
  • ./gradlew --console=plain :package:test --tests net.runelite.pluginhub.packager.PluginTest.testWarningIsIncludedInDisplayData --rerun-tasks
  • Red/green check: temporarily removed displayData.setWarning(warning) and confirmed the new test failed, then restored it and confirmed it passed.
Open in Web View Automation 

Tunatroll and others added 4 commits March 7, 2026 09:30
Added grand-flip-out plugin with repository details and warning.
Co-authored-by: Tunatroll <Tunatroll@users.noreply.github.com>
Co-authored-by: Tunatroll <Tunatroll@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants