Skip to content

Add consumer release testing helpers and a complete lifecycle example - #16

Merged
dblock merged 1 commit into
masterfrom
dblock/testing-kit
Nov 11, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/testing-kit

Conversation

@dblock

@dblock dblock commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Ports the consumer-testing helpers and explicit fixture copying from ruby-gem-release #50 and #54.

Adds the optional npm-package-release/testing entry point: owned disposable Git projects, local publisher/host adapters with exact archive checksums and immutable retention, isolated inherited command environments, explicit-file preflight, symlink confinement, and permission preservation. No test-framework dependency is added.

The packaged lifecycle example shares its actual production builder with executable source/installed tests. It checks release/development README updates, installed artifact behavior, changelog templates, rejected publication, and repeated completion against retained checkpoints. Source and installed declarations cover the public subpath. README, contributor/design guidance, and the testing guide are updated.

Validation: 87 tests via npm run test:coverage; npm run lint; actual packed-consumer installation with strict engines and the installed lifecycle example. Provided, empty, and unset archive overrides passed. The testing module has 100% line/function and 96.93% branch coverage; overall coverage is 99.32% lines, 100% functions, and 94.79% branches.

Depends on #14, whose branch now includes merged #15. Rebasing this layer onto that updated parent preserved the exact tested tree. No publication, tags, releases, credentials, or repository protections were changed. Test adapters are explicit replacements, not a sandbox for arbitrary callbacks.

AI disclosure: Authored by GitHub Copilot on behalf of @dblock.

@dblock
dblock added this pull request to stack #17 November 11, 2026 18:07
Base automatically changed from dblock/changelog-templates to master November 11, 2026 18:27
@dblock
dblock force-pushed the dblock/testing-kit branch from 0ffec7a to 8dcf4fe Compare November 11, 2026 18:27
@dblock
dblock force-pushed the dblock/testing-kit branch from 8dcf4fe to dcd5729 Compare November 11, 2026 18:38
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/testing-kit branch from dcd5729 to 9ef93a8 Compare November 11, 2026 18:47
@dblock
dblock merged commit e0e27c0 into master Nov 11, 2026
8 checks passed
@dblock
dblock deleted the dblock/testing-kit branch November 11, 2026 18:51
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.

1 participant