Computer Science 203:
Software Engineering
Gregory M. Kapfhammer
Color Scheme
Key Concept
Corresponding Diagram
In-Class Discussion
In-Class Activity
Details in the Textbook
Python Testing with Pytest
Chapters 1 through 2
Test Strategy
Unit test
Integration test
System test
Where do you think that we will focus?
Chapter 1: Getting Started
Test Cases
Setup steps
Call function under test
Perform assertions
What does it mean when a test fails?
What does it mean when a test passes?
Test Outcomes
Pass
Fail
Skip
XFAIL
XPASS
ERROR
What are XFAIL and XPASS?
X-Type Outcomes
XFAIL: Expected to fail, ran, and failed
XPASS: Expected to fail, ran, and passes
When would a test be expected to fail?
Brief overview of features
Application to the software project
See Page 24 for more details
Test Outcomes
assert something
assert a == b
assert a < b
Benefits of parameterized testing?
See page 43 for an example
Alternatives to parameterized testing?
Application to the software project