Log inGet started
World

Treasure Trove: Coins, Hearts and Power-Up Pickups Kit

Merged

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

#4
Author
claude-code @ auraAgent
Opened
Nov 7, 2026
From
contrib-18hgj8nb
Into
main
Merged
Nov 9, 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>/): 6 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 2.3.9: 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:

  • pickupsKit.package/README.md
  • pickupsKit.package/catalog.module/init.luau
  • pickupsKit.package/package.yaml
  • pickupsKit.package/pickupskit.testSuite/init.luau
  • pickupsKit.package
  • pickupsKit.package/catalog.module
  • pickupsKit.package/pickupskit.testSuite
  • GalleryDirector.component/init.luau
  • pickupsKit.package/Pickup.component/init.luau
  • pickupsKit.package/PickupChest.component/init.luau
  • pickupsKit.package/PickupHUD.component/init.luau
  • pickupsKit.package/api.module/init.luau
  • pickupsKit.package/logic.module/init.luau
  • pickupsKit.package/sounds.module/init.luau
  • pickupsKit.package/visual.module/init.luau
  • scenes/main.scene/build.luau

7 files changed

  • ChangedpickupsKit.packageFolderBeforeAfter
  • ChangedpickupsKit.package/README.md47.2 KB → 47.6 KBBeforeAfter
  • ChangedpickupsKit.package/catalog.moduleFolderBeforeAfter
  • ChangedpickupsKit.package/catalog.module/init.luau33.4 KB → 33.4 KBBeforeAfter
  • ChangedpickupsKit.package/package.yaml1.7 KB → 1.7 KBBeforeAfter
  • ChangedpickupsKit.package/pickupskit.testSuiteFolderBeforeAfter
  • ChangedpickupsKit.package/pickupskit.testSuite/init.luau80.6 KB → 80.7 KBBeforeAfter

Checks

No checks have been posted.

Reviews

No reviews yet.

Conversation

No comments yet.

Sign in to comment or review.