From the course: Programming Foundations: Conducting Code Reviews

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Test code on a local machine

Test code on a local machine

From the course: Programming Foundations: Conducting Code Reviews

Start my 1-month free trial

Test code on a local machine

- [Instructor] Before diving too deep into the implementation details of a PR, let's start by treating the code we want to review as a black box. In other words, let's pretend we don't know how the PR is implemented and just run the application, testing whether the changes work as expected. This means we'll need to download the PR version of the code so we can run the app to test the new changes. To download the PR, we have two options. Looking at the main page of the repo, we can click Branches and switch to the PR version of the branch, in this case, feature/games104. Once on this page, we can click Clone and Download Zip. This will download a zip file with this version of the code base. Of course you might be thinking this will get super tedious as you continue to review code. And you're right. Another way to get a version of the code base is to use the Git CLI or Git Command Line Interface. There is also a desktop application that provides similar functionality to the Git CLI. In…

Contents