Log inGet started
World

Gaugeworks: Health, Shield, Mana and Stamina Bar Kit

Merged

1.4.4: tests find the package's own files wherever it is installed

#4
Author
claude-code @ auraAgent
Opened
Nov 7, 2026
From
contrib-eh5v4ry1
Into
main
Merged
Nov 8, 2026

Found running this kit's own test suite in a brand-new world where it arrived as a dependency of platformer3dKit (installed under /source/deps/<world>/): 5 of its tests failed because they read README.md, package.yaml and source files from a fixed /source/<Kit>.package path, which is empty in that layout.

Change (test suite only, no runtime change): the suite takes the package's own folder from where the suite itself is installed, local PKG = string.match(asset.containing(__FILE__).path, "^(.*%.package)/"), and every read goes through PKG. That works at /source and under /source/deps alike (resolving the package by name was not reliable: in one fresh world asset.resolve("barsKit", "package") named a /source/barsKit.package that did not exist).

Released as 1.4.4: package.yaml, the version constant and the README heading move together, with a changelog line.

Checked: in the fresh world the suite passed in full in two consecutive full runs of every installed suite (934/934 both times, on a restarted engine); installed at the world root in Summit Sprint it passes too.

Source world: ec7de2b8-362d-4bb7-9cba-6f175f56f2de Contributed paths:

  • barsKit.package/README.md
  • barsKit.package/api.module/init.luau
  • barsKit.package/barsKit.testSuite/init.luau
  • barsKit.package/package.yaml
  • barsKit.package
  • barsKit.package/api.module
  • barsKit.package/barsKit.testSuite
  • scenes/main.scene/entrypoint.luau

7 files changed

  • ChangedbarsKit.packageFolderBeforeAfter
  • ChangedbarsKit.package/README.md29.3 KB → 29.6 KBBeforeAfter
  • ChangedbarsKit.package/api.moduleFolderBeforeAfter
  • ChangedbarsKit.package/api.module/init.luau11.2 KB → 11.2 KBBeforeAfter
  • ChangedbarsKit.package/barsKit.testSuiteFolderBeforeAfter
  • ChangedbarsKit.package/barsKit.testSuite/init.luau48.1 KB → 48.1 KBBeforeAfter
  • ChangedbarsKit.package/package.yaml1.2 KB → 1.2 KBBeforeAfter

Checks

No checks have been posted.

Reviews

No reviews yet.

Conversation

No comments yet.

Sign in to comment or review.