Test design, engineering evidence and reproducibility
Design independent positive, negative and boundary tests while distinguishing a passing classroom example from measured engineering evidence.
What you'll understand
- Write assertions with independent expected outcomes and clear failure cases
- Classify synthetic, executed, observed and reviewed evidence
- Plan reproducibility checks, traceability and the correct escalation for inconclusive findings
Terms that matter
Test oracle
An independently justified expected outcome or rule against which software behavior is evaluated for a particular test case.
Boundary fixtures
Review this concept in the lesson exercise and related engineering workspace. The glossary does not yet contain a source-qualified definition.
Artifact digest
Review this concept in the lesson exercise and related engineering workspace. The glossary does not yet contain a source-qualified definition.
Evidence maturity
Review this concept in the lesson exercise and related engineering workspace. The glossary does not yet contain a source-qualified definition.
What could go wrong?
A simulation test compares an output against the same formula used by the implementation and declares success, missing a shared sign error.
Identify the assumptions, affected components, missing observations and test evidence before making a safety conclusion.
Apply the concept
Design an offline test matrix for a coordinate-conversion module: include axis basis vectors, a wrong-unit input, a missing log and an independent expected result.
What evidence would you need?
Immutable fixture and tool versions, independently derived oracle, actual execution log and a human-reviewed scope statement.
Exercises are instructional; real hardware measurements and independent professional review remain separate.
Work through a real reasoning pattern.
A converter round-trip passes, but both forward and backward functions share the same sign error. What test exposes it?
A separate golden reference defines the physical coordinate basis.
- Step 1
Select a basis vector with an independently justified expected output.
Where this example stops: Passing a finite fixture set is not a general proof of correctness or airworthiness.
Can the tests detect an incorrect implementation?
The known classroom rule is output = 3 × input + 1. Choose a fictional implementation and compare against three independently specified golden results, including negative and zero inputs.
2 mismatches detected. A passing fixture set is not a general proof of correctness.
| Input | Expected | Actual | Check |
|---|---|---|---|
| -2 | -5 | 7 | Mismatch |
| 0 | 1 | 1 | Matches |
| 3 | 10 | -8 | Mismatch |
An oracle must be independent of the implementation under test. No simulator, aircraft measurement, flight approval or certification is implied.
A green test with a shared error
A numerical converter has a reversed sign, but its test computes expected outputs using the same conversion function.
Fictional evidence packet · 3 observations
- Round trip: PASSED
- Independent +90° axis fixture: MISMATCH
- Expected values generated by the system under test
A passing classroom test suite alone cannot approve flight or certify an aircraft. Challenge outcomes are not saved as qualifications and never change aircraft, compliance or manufacturing records.
Can you explain this engineering decision?
Expected values are generated by the same code being tested.
This is self-paced retrieval practice, not a graded test or proof of professional competence. Think through the scenario before revealing the explanation.
Write down what you learned.
Capture assumptions, unresolved questions and evidence you would want to inspect. These reflections are not graded or verified engineering records.
Need a starting point?
- What makes an oracle independent of the implementation being tested?
- Can successful synthetic tests establish flight certification?
Unsaved drafts are temporarily preserved in this tab when storage permits; click Save note to keep them in this browser. Export before clearing browser data or switching devices. Do not enter passwords or sensitive personal information.
Test the ideas, not just your memory.
Answer both questions, then check your reasoning. An incorrect answer explains what to revisit. Both must be correct in one submitted attempt to complete this classroom check.
Practice feedback is not a flight qualification, certification or formal engineering assessment. Previously saved lesson completions remain in place.