go-git-http-xfer icon indicating copy to clipboard operation
go-git-http-xfer copied to clipboard

Update tests to pass more configurations

Open gregoryguillou opened this issue 4 years ago • 1 comments

This PR changes your tests (only tests!) for a few reasons:

  • the default HEAD has changed from master to main in new git versions. Tests now read .git/HEAD to get the right pattern
  • All files are now created in temporary directories instead of /data/git in some cases
  • temporary directories are created without permissions on MacOS. The addition of os.ModePerm fixes it
  • temporary directories are now removed at the end of every tests to rerun them as wanted
  • a complete configuration is reset on every test so that we can run them independently
  • git might not be located in /usr/bin on some OS or because you want to use a custom git version

Your repository is really awesome. Thank a lot for sharing!

gregoryguillou avatar May 01 '21 13:05 gregoryguillou

Coverage Status

Coverage increased (+2.6%) to 83.271% when pulling b30b365161d71fe08d65aa66ab0e945d499b0489 on gregoryguillou:feature/update-test-for-maxos into 2c6e84059ee0649e691f39ec0a83f72bbb62e66e on nulab:master.

coveralls avatar May 01 '21 13:05 coveralls