Class TAPOracle
- java.lang.Object
-
- edu.odu.cs.zeil.codegrader.oracle.Oracle
-
- edu.odu.cs.zeil.codegrader.oracle.TAPOracle
-
public class TAPOracle extends Oracle
An oracle that ignores the expected string and scans the observed string for a TAP (Test Anything Protocol) JUnit 5 report. E.g.,1..8 ok 1 - EncyclopediaAddCourse ok 2 - EncyclopediaAssign not ok 3 - EncyclopediaConstructor ok 4 - EncyclopediaCopy ok 5 - EncyclopediaRead not ok 6 - EncyclopediaRemoveCourse ok 7 - ResearchPlanAddPrior
The score is the ratio of OK tests to the number tests.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.odu.cs.zeil.codegrader.oracle.Oracle
Oracle.ScoringOptions
-
-
Field Summary
-
Fields inherited from class edu.odu.cs.zeil.codegrader.oracle.Oracle
PASSED_TEST_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description TAPOracle(OracleProperties config, TestCase testCase, Submission submission, Stage submitterStage)Create a new oracle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OracleResultcompare(java.lang.String expected, java.lang.String actual)Compare two strings to see if one is an acceptable variant of the other.-
Methods inherited from class edu.odu.cs.zeil.codegrader.oracle.Oracle
getCap, getCommand, getIgnoreCase, getIgnoreEmptyLines, getIgnorePunctuation, getIgnoreWS, getNumbersOnly, getPattern, getPrecision, getScoring, getStage, getSubmission, getTestCase
-
-
-
-
Constructor Detail
-
TAPOracle
public TAPOracle(OracleProperties config, TestCase testCase, Submission submission, Stage submitterStage)
Create a new oracle.- Parameters:
config- configuration propertiestestCase- the test case to which this oracle will applysubmission- the submission being judgedsubmitterStage- the stage where the submitted code has been built
-
-
Method Detail
-
compare
public OracleResult compare(java.lang.String expected, java.lang.String actual)
Compare two strings to see if one is an acceptable variant of the other. The precise meaning of "acceptable" depends on the settings.
-
-