Apocrypha

bats-assert

Common assertions for Bats

bats-assert is a helper library providing common assertions for Bats. In the context of this project, an assertion is a function that perform a test and returns 1 on failure or 0 on success. To make debugging easier, the assertion also outputs relevant information on failure. The output is formatted for readability. To make assertions usable outside of @test blocks, the output is sent to stderr. The most recent invocation of Bats' run function is used for testing assertions on output and status code.

Available in

OverlayNewestEbuildsLast activity
guru gitweb ↗ 2.2.0 1 46 h details ›
stuff GitHub ↗ 2.2.4 1 2 d details ›

Versions & arches

VersionOverlay amd64arm64 Committed
2.2.4 stuff amd64 testing arm64 testing 40 d view · download · history ↗
2.2.0 guru amd64 testing arm64 untested view · download · history ↗

Use flags of 2.2.4

  • test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)