mirror of
https://github.com/kellymichels/zscripts-token-savers
synced 2026-10-07 07:18:18 +00:00
|
Some checks failed
tests / test (push) Has been cancelled
Every Invoke-ZScript call starts a fresh Windows PowerShell, which costs about 1.7 seconds - and it is the dominant cost of this file. Thirteen of its forty-three calls re-run a command an earlier check has already run. The usage tests are the clearest case: a script is run bare three separate times to assert that it exits non-zero, that its usage lists the project keys, and that the usage never mentions the underscore comment key. Those are three questions about one run. Memoised on the exact command, so each distinct invocation happens once and every check that asks for it gets the same captured result. The commands reached here either refuse their input or inspect an unused fixture port, so none has a side effect a second run would reveal. ArgumentParsing.Tests.ps1, over three runs each: 83/108/88s before, 61/68/79s after. All 42 tests still pass. Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| ArgumentParsing.Tests.ps1 | ||
| Checksums.Tests.ps1 | ||
| DeployTag.Tests.ps1 | ||
| Invoke-Coverage.ps1 | ||
| NewProjectArchive.Tests.ps1 | ||
| PlainTextTwins.Tests.ps1 | ||
| sanitization-patterns.psd1 | ||
| Sanitization.Tests.ps1 | ||
| StartGitPull.Tests.ps1 | ||
| VerifyPlan.Tests.ps1 | ||
| ZHelpers.Tests.ps1 | ||