data class JUnitResults: Any
Fields
Name | Description |
---|---|
val testClassName: String
|
|
val fullTestClassName: String
|
is a String, with the Test class name prefixed by the name of the respective package |
val numTests: Int
|
is an Int with the number of unit tests that were executed |
val numErrors: Int
|
is an Int with the number of unit tests that resulting in an error |
val numFailures: Int
|
is an Int with the number of unit tests that failed |
val numSkipped: Int
|
|
val timeEllapsed: Float
|
is a Float, representing the time that it took to execute the Test class |
val junitMethodResults: List<JUnitMethodResult>
|
is a List of JUnitMethodResult with the result each unit test |
Constructors
<init>
constructor(testClassName: String, fullTestClassName: String, numTests: Int, numErrors: Int, numFailures: Int, numSkipped: Int, timeEllapsed: Float, junitMethodResults: List<JUnitMethodResult>)
Represents the JUnit Test results for a certain Test class.
Parameters
Name | Description |
---|---|
testClassName: String
|
|
fullTestClassName: String
|
|
numTests: Int
|
|
numErrors: Int
|
|
numFailures: Int
|
|
numSkipped: Int
|
|
timeEllapsed: Float
|
|
junitMethodResults: List<JUnitMethodResult>
|
Methods
isTeacherPublic
fun isTeacherPublic(assignment: Assignment): Boolean
Determines if the Test class contains public tests implemented by the teacher. Public tests are tests that are designed for their results to be fully and always visible to the students that performed the Submission.
Parameters
Name | Description |
---|---|
assignment: Assignment
|
is an Assignment |
ReturnValue
Name | Description |
---|---|
Boolean
|
a Boolean with the value true iif the test class represents public teacher tests; false otherwise |
isTeacherHidden
fun isTeacherHidden(): Boolean
Determines if the Test class contains private tests implemented by the teacher. Private tests are tests that are designed for their results to be invisible, or only partially visible, to the students that performed the Submission.
ReturnValue
Name | Description |
---|---|
Boolean
|
a Boolean with the value true iif the test class represents private teacher tests; false otherwise |
isStudent
fun isStudent(assignment: Assignment): Boolean
Determines if the Test class contains tests implemented by the students performing the Submission.
Parameters
Name | Description |
---|---|
assignment: Assignment
|
ReturnValue
Name | Description |
---|---|
Boolean
|
a Boolean with the value true iif the test class represents student tests; false otherwise |
Represents the JUnit Test results for a certain Test class.