GCSE · Computer Science · Eduqas · Spec C500QS
Presenting test outcomes with commentary
Hand your test results to someone who wasn't in the room. Could they tell what was tested, what should happen, what did happen, and what you did about it?
Computer Science · Testing
Pass or fail? Compare, don't guess
A tester has run five tests, and the program finished every one without an error message. For each row, compare the actual result with the expected result, then choose Pass or Fail before you read the reason.
Still to sort
Pass (0)
Actual result matches expected result.
Where the line is: Pass means the two results match. It does not mean the program ran.
Fail (0)
Actual result differs from expected result.
Where the line is: Fail means the two results differ, even when the program ran smoothly.
A youth-club sign-up program should welcome ages 11 to 16 (including 11 and 16) and turn everyone else away with a message.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Write the record so a stranger can check every test: expected, actual, evidence and a reasoned comment.
What you need to know
- A test outcome is a verdict: put the actual result next to the expected result for that test.
- Write the record for someone who wasn't there. They should see what was tested, what was expected and what happened.
- Results usually go in a table, one row per test: number, what is tested, test data or action, expected, actual.
- Label each row pass or fail by comparing the results side by side: a match is a pass, a difference a fail.
Have a goMaya says: “Test 9 passed, the program printed a total and didn't crash.” Expected total: £6. The program printed £5. Is Maya right?
No. £5 does not match the expected £6, so Test 9 is a Fail.
Maya judged by whether the program ran. The outcome comes from comparing the actual result with the expected result.
- Back the row up with evidence, such as a screenshot of the output or a copy of the input and output.
- Label each piece of evidence with its test number, so it can be matched to the result it proves.
Have a goA tester saves a screenshot of Test 5's output as “IMG_2231”, with nothing else on it. What should be added so it proves the right row?
Label it with its test number, “Test 5”.
Without a test number, nobody can match the screenshot to the result it is meant to prove.
- Commentary says, for each result, what it shows about whether that part of the solution meets its requirement.
- If a test fails, the commentary records the change made to the code and the result of re-running the test.
- A re-run is its own entry with its own actual result and evidence, so the failure and the later outcome both show.
Have a goTest 8 failed, the code was fixed and Test 8 was re-run. Where should the new actual result go in the table?
In its own new entry, not over the original Test 8 row.
A separate entry with its own actual result and evidence shows both the original failure and the later outcome.
- A thorough commentary covers every test, passes included, with reasons that refer to the specific results and evidence.
The big picture
A test outcome is a verdict: put the actual result next to the expected result and the row shows pass or fail. A good record backs every row with evidence labelled by test number, shows a fixed failure and its re-run as separate entries, and comments on every test using the specific results.
Key points
Worked example
Problem
Test 6 of the sign-up program: the tester types 14, and the program should welcome them. It prints “Welcome to the club” and the tester saves a screenshot. Write the row, decide the outcome and write the commentary.
⚠ Watch out
Calling a test a pass because the program ran without crashing, then writing comments only for the failures. Pass or fail is decided by whether the actual result matches the expected result, and every test gets a comment.
Memory hook
Row, proof, reason: the row gives the verdict, the evidence proves it, and the commentary says what it means. Do it for every test.
Check yourself
Test 7 (age 30) expected “Sorry, members must be 11 to 16” and got exactly that. Outcome, and what must the commentary refer to? Answer: Pass; the matching results and Test 7's evidence.
Flashcards
(12)How is a test's pass or fail outcome decided?
A program ran with no error message. Does that make the test a pass?
What does a results-table row usually give?
Why put the actual result beside the expected result?
A test expects a rejection message and the program gives it. Pass or fail?
Give two kinds of evidence for a test outcome.
Why is evidence labelled with its test number?
What does the written commentary say for each result?
What does the commentary record when a test fails?
How should a re-run of a failed test be presented?
Which tests does a thorough commentary cover?
What makes a commentary well reasoned?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Eduqas GCSE Computer Science topics
- File handling: read into an array
- File handling: write to a file
- Iteration: condition and counter controlled loops
- Lists, tuples and dictionaries
- Mathematical and logical operations in code
- Modular structuring with abstraction
- Program a solution to requirements
- Refining code during development
- Selection in programs
- Sequence in programs
- String manipulation in code
- Subroutines with well-defined interfaces
How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 16 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.