cse15l-lab-reports

Lab Report 4 - Doing it All from the Command Line

Yangyang Liu
CSE 15L Section B02
PID: A17360266

This lab report reproduces the task from the CSE 15L Spring 2023 Week 7 Lab.

   

Setting Up (Steps 1 to 3)

  1. Delete any existing forks of the repository on GitHub account with contents found here.

  2. Fork the repository (from above).

  3. Optional: Start a timer if you are timing yourself!

   

Step 4: Log into ieng6

Keys pressed:
ssh <space> cs15lsp23mh@ieng6.ucsd.edu <enter>

   

Step 5: Clone your fork of the repository from your Github account

Keys pressed:
git <space> clone <space> git@github.com:yal103/lab7.git <enter>

   

Step 6: Run the tests, demonstrating they fail

Keys pressed:
cd <space> lab7 <enter>

 

javac <space> -cp <space> .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar <space> *.java <enter>

java <space> -cp <space> .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar org.junit.runner.JUnitCore <space> ListExamplesTests <space>

   

Step 7: Edit the code file ListExamples.java to fix the failing test

Keys pressed:
vim <space> ListExamples.java <enter>

 

/ange <enter> <down> r2 :wq <enter>

   

Step 8: Run the tests, demonstrating that they now succeed

Keys pressed:
<up> <up> <up> <enter> , <up> <up> <up> <enter>

   

Step 9: Commit and push the resulting change to your Github account

Keys pressed:
git <space> add <spa(っ^▿^)ce> ListExamples.java <enter>
git <space> commit <space> -m <space> "Updated" <enter>
git <space> push <space> origin <space> main <enter>

The file should be updated in the GitHub repository, which the commit message:

(っ^▿^)