cse15l-lab-reports

Lab Report 5

This report is a retrospective on Week 6’s activity about grading scripts.

Testing Script on List Methods using implementations of ListExamples

Screenshot 2023-03-13 211956 copy1

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.

Screenshot 2023-03-13 211956 copy2

The corrected implementation results in no failures.

Screenshot 2023-03-13 211956 copy3

The compile-error implementation does not compile, and instead produces the rather harsh error message.

Testing Script on CSE 12 PAs

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.

Screenshot 2023-03-13 223311

Above is the altered grading script using a PA7 public tester, which passed all the tests.

Screenshot 2023-03-13 224101

Here is another alteration I made to run the grading script on PA6, which passed all the tests again.

Screenshot 2023-03-13 224306

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.