Skip to content

0.6.0

Choose a tag to compare

@github-actions github-actions released this 16 Aug 20:53
· 14 commits to main since this release
0.6.0
2f2aa78

Version 0.6.0

Changelog

  • Added skip_test "${REASON}": marks the current test as skipped and reports the reason. Use
    skip_test "reason" && return to end the test body.
  • Added --no-skip, which turns every skip_test into a failure. For an environment that
    GUARANTEES the capability a test probes for, where a skip means the guarantee broke.
  • Fixed: a fatal abort inside a test no longer reports success. The EXIT trap's own last command
    became the script's exit status, so a failing run could exit 0. This repository's own test suite
    was dying at case 5 of 12 under set -u and still reporting PASS, hiding the seven that never
    ran.
  • Fixed: expect_contains / expect_not_contains aborted the shell when given an EMPTY array.
    bash 3.2 (which macOS ships) treats "${@}" and "${array[@]}" as unbound under set -u.

For Bazel MODULE.bazel

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

What's Changed

  • Bump version from 0.5.0 to 0.5.1 by @helly25 in #24
  • Add skip_test and --no-skip; fix a suite that reported green while dying by @helly25 in #25

Full Changelog: 0.5.0...0.6.0