rkotze / git-mob-vs-code

Co-author commits. A quick way to add co-author metadata to a Git commit via VS Code source control panel.
https://marketplace.visualstudio.com/items?itemName=RichardKotze.git-mob
MIT License
33 stars 9 forks source link

Create temp .git-coauthor file for UI-tests #272

Closed rkotze closed 4 months ago

rkotze commented 8 months ago

Global path checks if a .git-coauthor file exists and this throws an error if it exists. This stops the ui-tests from running.

For the UI testing environment set the env var GITMOB_COAUTHORS_PATH and use that path to save global co-authors. This will prevent overriding a contributor's real global file when running UI tests locally.

For consistency in creating a git coauthor schema, git-mob-core library should always be responsible for creating it.