bats-assert icon indicating copy to clipboard operation
bats-assert copied to clipboard

Common assertions for Bats

Results 20 bats-assert issues
Sort by recently updated
recently updated
newest added

In addition to being source-able, each function should be able to be invoked directly as an executable. See #12

This (in particular) would aid in migration from the v1.1.1

Perhaps show all the output? Perhaps just show N lines before/after the specified index... Also perhaps add the numerical index when printing all the output?

Assertions are _expected_ to print failure messages when they fail. As such, STDERR is not the correct place for the expected failure messages to go. This leaves STDERR as the...

Exit 1 is for when the assertions fail. But for when the helper is used incorrectly, it should exit 2. See diff and other compare tools as prior art. (0...

1. [ ] Update functions to use docopt style docs via in-source comments. 1. [ ] Include markdown formatted details in comments for doxygen parsing. 2. [ ] Generate readme...

Adding support for "golden files". Golden files are (often text) files that are checked into a repo and are used in testing for asserting strings against their content. They have...

As someone new to bash, but familiar with regular expressions, it wasn't clear to me that something like `\w` would not work. This added [admonition](https://github.com/orgs/community/discussions/16925) should hopefully save future on-lookers...