bats-assert – Helper library providing common assertions for Bats

bats-assert provides various ready-made assertions that can be used to make Bats tests simpler to understand and to debug.

For example:

  • assert_success: exit status is 0.

  • assert_output: output contains given content.

  • assert_line: a specific line of output contains given content.

Package availability chart

Distribution

Base version

Our version

Architectures

Debian GNU/Linux 11.0 (bullseye)

2.1.0-1~nd110+1

i386, amd64, sparc, armel, arm64

Debian GNU/Linux 12.0 (bookworm)

2.1.0-2

2.1.0-1~nd120+1

i386, amd64, sparc, armel, arm64

Debian GNU/Linux 13.0 (trixie)

2.1.0-3

Debian testing (forky)

2.2.4-2

Debian unstable (sid)

2.2.4-2

2.1.0-1~nd+1

i386, amd64, sparc, armel, arm64

Ubuntu 22.04 “Jammy Jellyfish” (jammy)

2.1.0-1~nd22.04+1

i386, amd64, sparc, armel, arm64

Ubuntu 24.04 “Noble Numbat” (noble)

2.1.0-3

Ubuntu 25.04 “Plucky Puffin” (plucky)

2.1.0-3

Comments

blog comments powered by Disqus