You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson covers software testing strategies for the OCR A-Level Computer Science (H446) specification. Testing ensures that software is correct, reliable, and meets its requirements. You need to understand different testing types, techniques, and tools.
Testing is essential because:
Exam Tip: Know the difference between verification ("Are we building the product right?") and validation ("Are we building the right product?"). Testing contributes to both.
Unit testing tests individual components (functions, methods, or classes) in isolation from the rest of the system.
def add(a: int, b: int) -> int:
return a + b
# Unit tests
assert add(2, 3) == 5
assert add(-1, 1) == 0
assert add(0, 0) == 0
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.