Fork this repository
Create a new branch - name it whatever you like, but note it down!
Clone to your local machine
On your local machine, cd
into the directory created for your clone and switch to your new branch using the command:
git checkout <branchname>
Carry out all work in your local filesystem using VS Code, as you will need to send them back to Github.
- Create a scratch org (or connect to an existing one)
- Edit the class
force-app/main/default/classes/Homework.cls
and add the code requested in the comments. - Push the code to your scratch org - this will check that your code compiles
- Run the
HomeworkTest
test class, either from VS Code or via the Developer Console. If all the tests pass, your code satisfies the requirements. Note that the tests are not exhaustive, so there may still be some issues that are picked up at code review time.
Please note that assessment is only available to BrightGen employees or by prior arrangement with Keir Bowden (aka Bob Buzzard). If you don't satisfy this criteria your pull request will not be reviewed.
Add keirbowden
as a collaborator to your new repository
The commands below are if you are using Git from the command line - you can also use the VS Code built-in source control functionality.
Stage your updated Homework class using the following command:
git add force-app/main/default/classes
and then commit the changes :
git commit
and push these to the remote repository
git push origin <branchname>
Once you are happy with your solution, open a pull request
Then wait!