- Setup Delete any existing forks of the repository you have on your account
- Setup Fork the repository
- Go to https://github.com/ucsd-cse15l-w23/lab7 and then press the Fork button in the top right to then create a fork of the repository
- The real deal Start the timer!
- Log into ieng6
- Keys Pressed:
<up><enter>
- The
ssh
command was 1 up in the search history and I pressed enter to run the command. The reason why we do not have to type in a password for logging in is because in lab of week 7 we generated an SSH key on our local terminal and then copied the path of the key into the.ssh
directory where we storeauthorized_keys
. Then on our local computer we run thescp <path to your public SSH key> [email protected]:~/.ssh/authorized_keys
and enter our password when prompted, which then allows us to log in to the remote account from the current local machine without having to retype the password.
- Clone your fork of the repository from your Github account
- Keys Pressed:
<ctrl+R><g><enter>
- To find the
git clone
command, I used<ctrl+R>
to open up reverse-i-search. Then I typed in<g>
and the first command that showed up wasgit clone [email protected]:Jeff591/lab7.git
. Once the command was pulled up, I pressed enter to run the command and clone the repository.
- Run the tests, demonstrating that they fail
- Keys Pressed:
<c><d><l><a><b><7><enter>
,<ctrl+R><j><a><v><a><c><enter>
,<h><i><s><t><o><r><y><space><|><space><g><r><e><p><space><"><j><a><v><a><space><-><c><p><"><ctrl+C><ctrl+V><enter>
- Since
cd lab7
is a short command, I just typed the command out and hit enter. For the commandjavac -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar *.java
, I used<ctrl+R>
and looked forjavac
which brought up the command and allowed me to run it with enter. For thejava -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar org.junit.runner.JUnitCore ListExamplesTests
command, I usedhistory | grep "java -cp"
to search up the command. Once I found it in history, I copied and pasted the command using<ctrl+C><ctrl+V>
and pressed enter to run it. These commands compiled the necessary files and ran them to show that the tests would fail.
- Edit the code file to fix the failing test
- Keys Pressed:
<up><up><up><up><up><up><up><up><up><enter>
,<ctrl+W><<><space><0><enter><right><=><ctrl+W><r><e><t><u><r><n><enter><up><up><right><right><right><right><right><right><right><right><backspace><2><ctrl+O><crtl+X>
- It took 9 up arrow key presses to access to the
nano ListExamples.java
command. Once in the file, I used<ctrl+W>
and searched for< 0
then appended an=
to the end of the<
. Then I used<ctrl+W>
and searched forreturn
and then navigated up and to the right to then changeindex1
toindex2
. Once the edits were done, I saved using<ctrl+O>
and exited using<ctrl+X>
. By making these edits, the tests should not fail.
- Run the tests, demonstrating that they now succeed
- Keys Pressed:
<up><up><up><up><up><enter>
,<up><up><up><up><up><enter>
- It took 5 up arrow presses to access the
javac -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar *.java
command, and it took another 5 up arrow presses to access thejava -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar org.junit.runner.JUnitCore ListExamplesTests
in search history. These two commands compile the files again and run the tests to show that that program passes all the written tests.
- Commit and push the resulting change to your Github account
- Keys Pressed:
<ctrl+R><g><i><t><space><a><enter>
,<ctrl+R><g><i><t><space><c><enter>
,<ctrl+R><g><i><t><space><p><enter>
- To get the command
git add ListExamples.java
, I used<ctrl+R>
and typedgit a
which brought up the most recent git add command. In a similar way I used<ctrl+R>
to get the commandsgit commit -m "Fixed"
andgit push
. After getting each of the commands I hit enter to run them. These commands allow the changes made on our remote account to show up on our GitHub repository.