git-directory-deploy icon indicating copy to clipboard operation
git-directory-deploy copied to clipboard

add tests

Open X1011 opened this issue 10 years ago • 3 comments

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 (#5)
    • [ ] empty deploy_directory (#5)
    • [x] non-existent remote deploy_branch (#5)
    • [x] non-existent local deploy_branch
  • [ ] non-writable remote repo
  • [x] 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 (#7)

X1011 avatar Jan 19 '15 07:01 X1011

You just added some right?

MoOx avatar Oct 19 '15 04:10 MoOx

Yeah, but so far, I've only written a basic happy-case integration test and some unit tests for the code I'm working on for issue #7, so I can't check anything off of this list yet.

X1011 avatar Oct 19 '15 09:10 X1011

No problem. That's awesome. Thanks for you work.

MoOx avatar Oct 19 '15 09:10 MoOx