Skip to content

Add descriptor validation regression tests#2

Draft
cursor[bot] wants to merge 3 commits into
masterfrom
cursor/regression-test-coverage-9131
Draft

Add descriptor validation regression tests#2
cursor[bot] wants to merge 3 commits into
masterfrom
cursor/regression-test-coverage-9131

Conversation

@cursor

@cursor cursor Bot commented May 19, 2026

Copy link
Copy Markdown

Summary

  • Added regression coverage for plugin descriptor commit= and repository= validation.
  • Fixed missing commit= descriptors to fail with PluginBuildException instead of throwing through the regex matcher.

Risky behavior now covered

  • Missing commit= values in frequently edited plugin descriptors.
  • Missing repository= values.
  • Non-HTTPS, non-GitHub, and non-clone repository URLs.

Test files added/updated

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

Why this reduces regression risk

Recent merged changes primarily update plugin descriptor files, so constructor-level validation is the shared gate for catching malformed descriptors before packaging. These tests prove bad descriptor metadata produces actionable validation failures instead of crashes or accidental acceptance.

Validation

  • Passed: ./gradlew --console=plain prep :package:test --tests net.runelite.pluginhub.packager.PluginTest.testCommitMustBePresent --tests net.runelite.pluginhub.packager.PluginTest.testCommitMustBeComplete --tests net.runelite.pluginhub.packager.PluginTest.testRepositoryMustBePresent --tests net.runelite.pluginhub.packager.PluginTest.testRepositoryMustBeGithubCloneUrl
  • Note: ./gradlew --console=plain prep :package:test --tests net.runelite.pluginhub.packager.PluginTest has unrelated existing integration failures in this environment while compiling generated example plugins.
Open in Web View Automation 

Tunatroll and others added 3 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>
Tunatroll pushed a commit that referenced this pull request May 21, 2026
* Update hallowed-sepulchre-helper

* Update hallowed-sepulchre-helper

pluginhub compliance #2 pass

remove floor 4 phase tracker
remove countdown from portals, wizards and knight statues 
remove knight statue zone highlight (both warning and hazard) 
remove warning highlight for wizard statues

* Update plugins/hallowed-sepulchre-helper

---------

Co-authored-by: Rhea <napkinorton@gmail.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