[BUG]: TestGitRepository can have environment-specific behavior #5306
Labels
bug
End user-perceivable behaviors which are not desirable.
Impact: Low
Low perceived user impact (e.g. edge cases).
Work: Medium
The means to find the solution is clear, but it isn't at good-first-issue level yet.
Describe the bug
TestGitRepository is currently written to assume that a global user and email has been set in the local git environment. This is inherently fragile as configurations outside the repository shouldn't affect the test environment.
Steps To Reproduce
Try to run TestGitRepositoryTest when no user.name or user.email is set for the machine's local global configuration.
Expected Behavior
TestGitRepository should be robust against global configurations by manually maintaining and setting a repository-local user name and email.
Screenshots/Videos
No response
What device/emulator are you using?
N/A -- test environment
Which Android version is your device/emulator running?
N/A -- test environment
Which version of the Oppia Android app are you using?
N/A -- test environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: