How Are Coding Questions Scored in Testlify?

How test-case scoring works

Testlify evaluates coding questions using test-case-level scoring — each test case is graded independently. Candidates earn marks for every test case they pass, even if others fail.

Scoring rules

  • Correct test case: The candidate earns the full marks allocated to that test case.
  • Incorrect test case: The candidate scores zero for that test case — no marks are deducted from other test cases the candidate passed.
  • Partial solution: Each passing test case earns its marks independently. Candidates receive credit without needing a complete solution.

Example: calculating a partial score

A coding question has 4 test cases, each worth 2 marks (8 marks total). A candidate passes test cases 1 and 3:

  • 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 count — failing test cases carry no penalty.

Tip: Encourage candidates to attempt every test case. Even a partial solution that passes a single test case earns marks.

Need help? Contact support.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us