Skip to content

Commit 5c623ba

Browse files
author
Brandon Lax
committed
Even More documentation updates
1 parent 5fc5377 commit 5c623ba

File tree

4 files changed

+17
-22
lines changed

4 files changed

+17
-22
lines changed

Autograder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.junit.runner.JUnitCore;
2727

2828
/**
29-
Classs representing an autograder.
29+
Classs representing an autograder.\n
3030
It's main method is the running of the autograder
3131
and instances can be made to store all important information.
3232
@author Brandon Lax
@@ -55,7 +55,7 @@ public class Autograder {
5555
public static final String CHECKSTYLE_XML = "/autograder/source/checkstyle/check112.xml";
5656

5757
/**
58-
The Autograder class constructor.
58+
The Autograder class constructor.\n
5959
Initializes the list of all tests.
6060
@param visible The visibility of the result to students see {@link #setVisibility(int) setvisibility}
6161
@param score The amount of points a test is worth
@@ -68,16 +68,16 @@ public Autograder(int visible, double score) {
6868
}
6969

7070
/**
71-
The Autograder class constructor.
72-
Initializes the list of all tests.
71+
The Autograder class constructor.\n
72+
Initializes the list of all tests.\n
7373
Also sets the visibility to hidden and
7474
the score to 0.1
7575
*/
7676
public Autograder() {
7777
this(1, 0.1);
7878
}
7979

80-
/** Method to add a seperately made test to the results.
80+
/** Method to add a seperately made test to the results.\n
8181
This allows for people to make child classes of the autograder
8282
if they need tests that dont currently exist that they would
8383
prefer to avoid adding to this class. For an example see
@@ -89,8 +89,8 @@ public void addTestResult(TestResult t) {
8989
}
9090

9191

92-
/** This is the wrap-up code of the autograder.
93-
<b>Must be the last line of the main method.</b> It
92+
/** This is the wrap-up code of the autograder.\n
93+
<b>Must be the last line of the main method.</b> \nIt
9494
prints all of the results in a JSON format to
9595
standard out.
9696
@throws Exception fails to create json for a test
@@ -108,7 +108,7 @@ public void testRunFinished() throws Exception {
108108
}
109109

110110
/**
111-
* Test to check if source file exists.
111+
* Test to check if source file exists.\n
112112
* Will output whether the file exists as well as
113113
* add a junit test for it.
114114
* @param programName the program name (can include or not include the .java)

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
This repo contains a basic autograder.
1+
# A Java Gradescope Autograder
22

3-
4-
It basically moves all the files into the source folder.
5-
Then it compiles and runs Autograder.java which checks
6-
for existance, compilation and checkstyle compliance.
7-
It also runs a set of diff tests for each program.
8-
It takes arguments in pairs: programName #ofDiffTests
9-
For autograder to run it must have at least one file to
10-
run and test
3+
This repo contains the autograder used in EN.500.112 Gateway Computing: JAVA at Johns Hopkins University.
114

12-
NOTE: Still being Edited
5+
The design of the autograder allows for a large number of options

examples/classwork/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
# Classwork
12
This is an example version of the autograder that works with Gateway Computing classwork activity.
23

34
The processing is split into two parts:
45
1. run_autograder
56
2. AutograderMain.java
67

78

8-
# run_autograder
9+
## run_autograder
910
run_autograder copies the users Proj2B.java file from the submission directory to the source directory.
1011
This is done so that the user code is in the same place as all of the running code.
1112
This class does not use packages as it is an intro class so we cant rely on packages to know locations.
@@ -15,7 +16,7 @@ Then it calls AutograderMain
1516

1617
It then redirects the output of the method into results/results.json which is what junit uses to check test results.
1718

18-
# AutograderMain.java
19+
## AutograderMain.java
1920

2021
1. It compiles Point.java, DataSet.java, and StatisticsSample.java to use later
2122
2. It checks if the source file exists and whether it compiles

examples/project_2/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
# Project 2
12
This is an example version of the autograder that works with Gateway Computing Project 2.
23

34
The processing is split into two parts:
45
1. run_autograder
56
2. AutograderMain.java
67

78

8-
# run_autograder
9+
## run_autograder
910
run_autograder copies the users Proj2B.java file from the submission directory to the source directory.
1011
This is done so that the user code is in the same place as all of the running code.
1112
This class does not use packages as it is an intro class so we cant rely on packages to know locations.
@@ -16,7 +17,7 @@ java_class_name #difftests #comparisontests
1617

1718
It then redirects the output of the method into results/results.json which is what junit uses to check test results.
1819

19-
# AutograderMain.java
20+
## AutograderMain.java
2021

2122
1. It takes the information provided and turns it into a program object
2223
2. It tests whether the source file exists

0 commit comments

Comments
 (0)