Skip to content

Releases: bats-core/bats-assert

v2.1.0

22 Oct 22:47
Compare
Choose a tag to compare

Removed

  • removed Changelog.md in favor of GitHub releases (#3)

Added

  • ensure everything works under set -u (#22)
  • add assert_not_equal (#37)
  • allow negative indices for specifying line assertions from the back (#30)
  • add assert_regex/refute_regex (#43, #44)

Changed

  • extract assertions to separate files (#19)
  • improve in-source documentation (#25)
  • improve README.md, point to bats-core instead of old sources (#26, #36, #39, #45)
  • migrate tests to GitHub Actions (#41)
  • use bats_load_library bats-support in test helper (#49)

2.0.0

26 Nov 21:04
Compare
Choose a tag to compare

First release since being forked from https://github.com/ztombol/bats-assert.

Added:

  • Ability to assert/refute the existence of output: ztombol#15

Breaking changes from 0.3.0:

  • assert_output (and refute_output) no longer reads the expected value from STDIN when invoked without arguments. Rather, STDIN expectations require an explicit - or --stdin flag. This allows assert_output (and the refute_outputcomplement) to match on the existence of output by invoking without args. (see ztombol#5 and ztombol#15)

Migrating from jasonkarns/bats-assert@1.1.1:

https://github.com/jasonkarns/bats-assert-1/wiki/Migrating-from-v1.1.1

v0.3.0

26 Nov 22:01
Compare
Choose a tag to compare

Removed

  • Move fail() to bats-support

v0.2.0

26 Nov 22:01
Compare
Choose a tag to compare

Added

  • refute() to complement assert()
  • npm support

Fixed

  • Not consuming the -- when stopping option parsing in
    assert_output, refute_output, assert_line and refute_line

v0.1.0

26 Nov 22:01
Compare
Choose a tag to compare

Added

  • Reporting arbitrary failures with fail()
  • Generic assertions with assert() and assert_equal()
  • Testing exit status with assert_success() and assert_failure()
  • Testing output with assert_output() and refute_output()
  • Testing individual lines with assert_line() and refute_line()