Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

.autograder/autograder.json Schema

FieldTypeReqDescription
meta.namestringyesDisplay name in the workflow and test filter
meta.descriptionstringyesStudent-facing description (supports ## placeholder for counts)
meta.pointsnumberyesMax score for this test (default 1)
meta.timeoutnumberyesSeconds for the autograder step (default 10)
typestringyesOne of: cargo_test, clippy, commit_count, test_count
manifest_pathstringnoPath to Cargo.toml (for cargo_test, clippy, test_count)
min_commitsnumbernoRequired commits (only for commit_count)
min_testsnumbernoRequired tests (only for test_count)

Example

[
  {
     "meta": { "name": "test_func_1", "description": "a test function", "points": 1, "timeout": 10 },
     "type": "cargo_test",
     "manifest_path": "Cargo.toml"
  },
  {
    "meta": { "name": "COMMIT_COUNT_1", "description": "Ensure at least ## commits.", "points": 1, "timeout": 10 },
    "type": "commit_count",
    "min_commits": 5
  },
  {
    "meta": { "name": "TEST_COUNT", "description": "Ensure at least ## tests exist.", "points": 1, "timeout": 10 },
    "type": "test_count",
    "min_tests": 3
  }
]