Last active
December 20, 2015 07:49
-
-
Save MarkBorcherding/6095971 to your computer and use it in GitHub Desktop.
A cheatsheet for bats test assertions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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