Skip to content

feat(cli): generate baseline of known failures#645

Closed
Chemaclass wants to merge 2 commits intomainfrom
feat/284-generate-baseline
Closed

feat(cli): generate baseline of known failures#645
Chemaclass wants to merge 2 commits intomainfrom
feat/284-generate-baseline

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

🤔 Background

Related #284

Inspired by PHPUnit's baseline feature: capture currently failing/risky/incomplete tests so the suite can focus on newly introduced issues without rewriting or skipping legacy ones.

💡 Changes

  • Add --generate-baseline <file> (and BASHUNIT_BASELINE_GENERATE) writing an XML list of failed/risky/incomplete tests; the run exits 0 so the file can be committed.
  • Add --use-baseline <file> (and BASHUNIT_BASELINE_USE) which loads the XML and reports matching tests as baselined, excluded from the failure count; unmatched failures still fail the run.
  • Console summary, help text, CHANGELOG and docs (command-line, configuration) updated; Bash 3.0+ compatible (parallel indexed arrays, no [[ ]]).

Capture the current run's failed/risky/incomplete tests into a baseline
XML file so they no longer fail the suite. Newly introduced issues still
fail the run, while baselined ones are reported separately and excluded
from the failure count.

Closes #284
@Chemaclass Chemaclass added the enhancement New feature or request label Apr 29, 2026
@Chemaclass Chemaclass self-assigned this Apr 29, 2026
Bash 5.2+ enables patsub_replacement by default, which makes & in a
parameter expansion replacement string refer to the matched text. That
broke baseline entity encoding/decoding under recent Linux runners while
still passing on macOS (Bash 3.2). Switch to sed for deterministic
behavior across Bash versions.
@Chemaclass
Copy link
Copy Markdown
Member Author

Reconsidered scope. Closing — see issue #284.

@Chemaclass Chemaclass closed this Apr 29, 2026
@Chemaclass Chemaclass deleted the feat/284-generate-baseline branch April 29, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant