-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
write (unit) tests using something like roundup, Bats, assert.sh, or shelltestrunner.
write tests for
- attempting to deploy without setting up first
- non-existent deploy_directory (check if the deploy directory is empty or not #5)
- empty deploy_directory (check if the deploy directory is empty or not #5)
- non-existent remote deploy_branch (check if the deploy directory is empty or not #5)
- non-existent local deploy_branch
- non-writable remote repo
- setup should not delete existing files in deploy_directory (i think it does currently if a file also exists in the repo's root)
- don't expose repo URL
- even when an operation fails (fatal error compromises the token #7)