capistrano-git-with-submodules icon indicating copy to clipboard operation
capistrano-git-with-submodules copied to clipboard

Write tests

Open ekho opened this issue 8 years ago • 1 comments

there is no unit tests =(

ekho avatar Jan 12 '17 09:01 ekho

I was trying to consider this in my PR, however the main obstacle seems to be mocking, or at least providing a stable, unchanging example remote mock repo that doesn't change. In actual fact I have Googled for something and all that returns are API mocking libraries.

Edit: Looks like you don't need to mock a git repo, you can do it all locally

So, is it known:

  • Whether git uses some kind of REST API
  • Can there be a VPS set up to allow a git repository that never changes? One candidate is AWS codecommit, but this is likely paid. This is likely a more robust solution Secondary questions: - How would the rakefile test read the remote? Would there be a git init on the test/ directory with submodule config for the VPS added? Then we would be committing refs and hashes I believe 😬 Could instead add reference to setting up a separate dir as the test remote repo and symlink?

ScottA38 avatar Mar 19 '22 10:03 ScottA38