Skip to content

Instantly share code, notes, and snippets.

@MarkBorcherding
Last active December 20, 2015 07:49
Show Gist options
  • Save MarkBorcherding/6095971 to your computer and use it in GitHub Desktop.
Save MarkBorcherding/6095971 to your computer and use it in GitHub Desktop.
A cheatsheet for bats test assertions
@test "A specific user exists" {
grep "homer.simpson" /etc/passwd
}
@test "A specific process is running" {
ps aux | grep -v grep | grep nginx
}
@test "A command exists in the path" {
which vim
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment