How Test-Case Scoring Works for Coding Questions
How test-case scoring works
Coding questions in Testlify are scored at the test-case level. Each test case is evaluated independently — candidates earn marks for every test case they pass, even if others fail.
Scoring rules
- Correct test case: Awards its full allocated marks toward the total score.
- Incorrect test case: Scores zero — does not reduce marks earned from other test cases.
- Partial solution: Each passing test case earns its full marks, so candidates can score even without solving the question completely.
Example: partial score calculation
A coding question has 4 test cases, each worth 2 marks (8 marks total). A candidate passes two:
- Test Case 1: Correct — +2 marks
- Test Case 2: Incorrect — 0 marks
- Test Case 3: Correct — +2 marks
- Test Case 4: Incorrect — 0 marks
Result: 4 out of 8 marks. Only passing test cases contribute to the score — failing ones carry no penalty.
Tip: Encourage candidates to attempt every test case — even a partial solution that passes one test case earns marks.
Need help? Contact support.