bats-file

Helper library providing filesystem-related assertions for Bats

Description

bats-file provides various assertions and helpers to simplify writing Bats tests that deal with files and filesystems.

For example:

 * assert_file_contains: Check if the file content matches a regex.
 * assert_file_owner: Check if a specific user owns the file.
 * assert_symlink_to: Check if the file is a symlink to the target.
 * temp_make: Create a temp directory for the current test in BATS_TMPDIR.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/bats-core/bats-file


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install bats-file