Testing Changes
When a collaborator adds you to a Pull Request as a reviewer, you can use these steps to manually test their changes.
This step is a great opportunity to:
- Verify the PR includes all the necessary files for this change to work, and
- Identify any additional documentation required to understand this change
Pull and Test Changes
If you have not already done so, Clone the remote github repository to your computer.
- Open a Terminal (in Positron, RStudio, or the Git-Bash terminal)
- Navigate to the project directory, if needed
- If you've made any local uncommitted changes, commit them or run
git stash - Run
git switch main - Run
git pull - Run
git switch [prefix]/[branch-name]to switch to their changes - Test their changes
- (Optionally) Adjust code, commit changes, and push
- If you stashed any changes, switch back to your feature branch and run
git stash pop
- Open the Command Palette (Ctrl + Shift + P)
- Enter "Git: Pull From..."
- Search for "origin/main" and select
- Open the Command Palette again
- Enter "Git: Checkout to..."
- Select your team member's branch
- Test their changes
- (Optionally) Adjust code, commit changes, and push
- Click on the Git tab in the upper right pane in RStudio
- Click the dropdown next to 'New Branch' and ensure it says
main - Click on the Pull button
- Close the status pop-up
- Using the drop down, switch to their branch
- Test their changes
- (Optionally) Adjust code, commit changes, and push
See Committing changes for how to stage files, commit them, and push to the remote.
Email data@hakai.org to learn more about automating testing.