This report is a retrospective on Week 6’s activity about grading scripts.
I used nano to edit the script that my lab partner and I worked on. Our first implementation had bugs in calculating the number of tests run and passed, so I addressed those and then tested the script using three of the given implementations and our own JUnit tester. As expected, the original implementation results in two failures.
The corrected implementation results in no failures.
The compile-error implementation does not compile, and instead produces the rather harsh error message.
I copied the grading script over to my local directory containing my CSE 12 programming assignments. I had to alter some of the paths and names used within the script so that it would look for the new correct file names. It was a bit of a struggle, as I tried using the wrong paths multiple times and it kept failing to recognize JUnit.
Above is the altered grading script using a PA7 public tester, which passed all the tests.
Here is another alteration I made to run the grading script on PA6, which passed all the tests again.
I then tried my custom tester for PA6, which was very similar to using the public tester.
Overall, using the grading script locally was pretty easy. The most difficult part was my struggle with the classpaths and using the right JUnit files in the right places.