Lecture 15 - Announcements /
Notes
Announcements
- Prac 4 is this Friday
- Exam 3 is next Friday
- We’re covering a bit of new material on software testing in class
today; this will be on one of the Prac 3 problems.
Goals
- Know what a unit test is
- Know the behavior of Python’s
assert statement and how
to use it when writing unit tests
- Be able to write a simple test case in a
pytest test
program.
- Know how to use input space partitioning and
boundary value analysis to devise a thorough set of
test cases for simple Python functions.
Plan for Today
- Software testing:
- The behavior of the
assert statement
- Anatomy of a
pytest test program, using
sixes_test.py as an example
- Input space partitioning and boundary value analysis, using
gradecalc.letter_grade as an example
- Write a test suite in
gradecalc_test.py
- E15T
- POTD 15 setup and overview
- Options: