Package edu.odu.cs.zeil.codegrader
Class TestSuiteProperties
- java.lang.Object
-
- edu.odu.cs.zeil.codegrader.TestSuiteProperties
-
public class TestSuiteProperties extends java.lang.ObjectThe properties available to describe a test suite.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringassignmentAssignment name.BuildPropertiesbuildProperties related to setup and build.SubmissionDateOptionsdateSubmittedHow to find when submission was submitted.java.lang.StringdueDateDate & time when assignment is due.int[]latePenaltiesList of late penalties, as a percentage per day.java.lang.StringreportTemplatePath to grade calculation spreadsheet.SubmissionDateOptionssubmissionLockHow to find when a submission was locked (subsequent submissions will be ignored or graded as zero).TestCasePropertiesBasetestDefault properties common to all test cases.booleantotalsShould totals be reported (true by default) in grade reports? Can be turned off if the purpose of the report is feedback rather than evaluation.
-
Constructor Summary
Constructors Constructor Description TestSuiteProperties()Create a property set with an empty list of grading options.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestSuitePropertiesloadYAML(java.io.File input)Load properties from a string.static TestSuitePropertiesloadYAML(java.lang.String input)Load properties from a string.voidsetSubmissionLockIn(java.lang.String pathPattern)Set the path pattern that will be used to recognize that an assignment has been locked for a student (e.g., after viewing an on-line solution) so that subsequent submissions will not be accepted.java.lang.StringtoString()Render as a string (YAML).
-
-
-
Field Detail
-
test
public TestCasePropertiesBase test
Default properties common to all test cases.
-
build
public BuildProperties build
Properties related to setup and build.
-
reportTemplate
public java.lang.String reportTemplate
Path to grade calculation spreadsheet.
-
assignment
public java.lang.String assignment
Assignment name.
-
dueDate
public java.lang.String dueDate
Date & time when assignment is due.
-
dateSubmitted
public SubmissionDateOptions dateSubmitted
How to find when submission was submitted.
-
totals
public boolean totals
Should totals be reported (true by default) in grade reports? Can be turned off if the purpose of the report is feedback rather than evaluation.
-
submissionLock
public SubmissionDateOptions submissionLock
How to find when a submission was locked (subsequent submissions will be ignored or graded as zero).
-
latePenalties
public int[] latePenalties
List of late penalties, as a percentage per day. E.g., [10, 20, 100] means that a 10% penalty is assessed on the first day late, 20% on the second day, and 100% on all subsequent days. [0] would ignore lateness, assessing no penalties. [100] would mean that late submissions are not accepted - they are graded but will get a score of zero. This is the default.
-
-
Method Detail
-
loadYAML
public static TestSuiteProperties loadYAML(java.lang.String input) throws TestConfigurationError
Load properties from a string.- Parameters:
input- properties in YAML- Returns:
- the properties
- Throws:
TestConfigurationError- if input cannot be parsed
-
loadYAML
public static TestSuiteProperties loadYAML(java.io.File input) throws TestConfigurationError
Load properties from a string.- Parameters:
input- file containing properties in YAML- Returns:
- the properties
- Throws:
TestConfigurationError- if input cannot be parsed
-
toString
public java.lang.String toString()
Render as a string (YAML).- Overrides:
toStringin classjava.lang.Object
-
setSubmissionLockIn
public void setSubmissionLockIn(java.lang.String pathPattern)
Set the path pattern that will be used to recognize that an assignment has been locked for a student (e.g., after viewing an on-line solution) so that subsequent submissions will not be accepted.- Parameters:
pathPattern- a pattern for a file path containing a date & time after which submissions cannot be accepted for a specific individual.
-
-