EBoard 15: Testing Testing Testing
This class will be recorded! Its use is limited to members of the
class. Please do not share with others.
Approximate overview
- Administrative stuff [~10 min]
- Q&A [~10 min]
- Quiz [~10 min]
- Lab [~60 min]
Administrative stuff
Notes and News
- Happy Friday!
- You know the drill on evening tutoring.
- Note: The new lab policy is that you can turn in what you’ve done when
you reach 4:30 p.m. (I’d recommend that you do the rest at some point,
to make sure you understand, but I want to respect your time.)
- Today’s lab will have groups of four, rather than groups of two.
Please continue to take the time to introduce yourselves a bit.
- Exercise 4 asks you to post code.
- We begin recursion next week. Note that the first recursion reading
covers two days of class; only the second day will be lab.
- Fun fact: Now that you know how to write tests, you can affect
your autograder grade on Gradescope. I’m hoping to address that issue.
Upcoming activities and other token earning things
Events
- Mentor session Sunday at 1 pm. Practice! Answer questions! Make
fun of Sam!
- CS Table Monday at noon.
- Mentor session Wednesday at 7 pm. Practice for the SoLA 2! Learn
recursion from someone who teachers better than Sam.
- Journalism Ethics Workshop, 7:00-8:30 pm, Thursday, March 4 and
Tuesday, March 9
Upcoming work
I’m not sure if all of these links are correct. Let me know if any are not.
Attendance
- Our wonderful mentors will take attendance by looking at the the list
of also-wonderful people here.
Notes on testing
There are two different broad approaches to testing.
- Some people put tests in test suites so that they can easily skip
over them.
- Some people put tests directly below each procedure (or set of procedures)
so that they can’t make progress until they identify/fix the issues.
- We’ll generally be using the latter technique, even though we describe
the former in the reading.
RackUnit provides two sets of testing procedures with slightly different
names and parameter orders.
- (test-equal? message actual expected)
- (check-equal? actual expected message)
Q&A
Can evening tutors (and friends and classmates) help on MPs?
Yup. But please cite them. And “help” should mean things like “help
debug code” or “help brainstorm strategies” not “give you the answer”.
How do I test things that read from files?
Choose files you know?
Use random Web tools that won’t steal your data or anything.
“On the Internet, you are the product.”
Why didn’t your respond to my Teams/email?
Thank you for reminding me.
Quiz
- Students should head off to lab after the quiz.
- DON’T FORGET TO NEGOTIATE THE START OF LAB
Lab