Skip to content

0.5.0

Choose a tag to compare

@github-actions github-actions released this 02 Jul 22:28
· 16 commits to main since this release
0.5.0
7a084a6

Version 0.5.0

Changelog

  • Added text-matching assertions:
    • expect_output_contains / expect_output_not_contains: literal substring checks.
    • expect_matches / expect_not_matches: extended regular expression (ERE) checks via bash's built-in [[ =~ ]] (no subprocess, so SIGPIPE-safe under set -o pipefail). ^/$ anchor the whole text, not individual lines.
    • expect_pcre_matches / expect_pcre_not_matches: Perl Compatible Regular Expression checks. These shell out to an external tool (grep -P, ggrep -P, pcre2grep, or pcregrep) via a here-string and fail with an actionable message when none is available.
  • Documented the cmd | grep -q SIGPIPE-under-pipefail pitfall in the README.

For Bazel MODULE.bazel

bazel_dep(name = "helly25_bashtest", version = "0.5.0")

What's Changed

  • Bump version from 0.4.0 to 0.4.1 by @helly25 in #22
  • feat: add text-matching assertions (expect_matches, expect_output_contains, expect_pcre_matches); bump to 0.5.0 by @helly25 in #23

Full Changelog: 0.4.0...0.5.0