test: golden-file snapshot tests for milestone + tagger#94
Merged
Conversation
…agger Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
b9fcdf0 to
ce81f1e
Compare
…ry comment headers Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds snapshot-style coverage for the milestone mover and tagger in
tools/release/, mirroring the "scenario -> expected" feel of the old bash harness, in PHP.What
tests/Support/MatchesSnapshots- golden-file helper. A test renders a string and compares it totests/snapshots/<name>.snap. Re-run withUPDATE_SNAPSHOTS=1to regenerate after an intended change.tests/Support/Journal- renders the recorded GitHub mutations as plain English, so the.snapfiles read like a description of what a release does, e.g.:MilestoneSnapshotTest- patch, first stable, first beta, missing-next, due dates, multi-repo, pre-release no-op.TaggerSnapshotTest- mixed run (create / skip / default-branch fallback / server-immutable / no-branch fail), force, dry run.Complements the focused assertions in
MilestoneUpdaterTest/RepoTaggerTest: the snapshots pin the whole sequence as a readable artifact.The updater bash snapshot harness (
tests/updater-script/) is untouched. 88 tests green; snapshots deterministic.