{
"id": 1, // assigned by codePost API
"testCategory": 42,
"type": 'external',
"description": 'run findMax([4])',
"sortKey": 0,
"pointsFail": 0,
"pointsPass": 5,
"explanation": "This test runs your findMax function on an array with a single element (`[4]`) to make sure your function handles singleton arrays correctly."
}
Attribute | Type | Description |
---|---|---|
id | integer | Unique identifier for this object. |
testCategory | integer | ID of the Test Category to which this Test Case corresponds. |
type | string | An enum describing the type of tests. *All tests created via the API must have type='external'. |
description | string | A description of the Test Case used as a title. |
sortKey | integer | Key that defines how Test Cases are sorted within the codePost UI. |
pointsFail | integer | Points added to a submission that fails this Test Case. Use a negative value to take off points. |
pointsPass | integer | Points added to a submission that passes this Test Case. |
explanation | string | Text (accepts Markdown) shown to students when exposed tests are run in the Student Console, and from the Code Console. |