bats-file

Helper library providing filesystem-related assertions for Bats
  https://github.com/bats-core/bats-file
  0
  no reviews



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.