

Eric Matthes: Maybe Don't Start With Unit Tests
22 snips Mar 7, 2025
Eric Matthes, author of "Python Crash Course," dives into the nuances of software testing. He argues against always starting with unit tests, suggesting that project type and audience should dictate testing strategies. Eric highlights the benefits of integration and end-to-end tests and shares insights on using PyTest, including fixtures and effective debugging with Python's assert statement. He emphasizes the importance of thoughtful test implementation and community engagement in refining testing practices.
AI Snips
Chapters
Books
Transcript
Episode notes
Git-Sim Bug
- Eric Matthes transitioned from hobbyist to professional programmer when projects impacted real users.
- A bug in the popular Git-Sim project, lacking tests, highlighted the need for testing in real-world applications.
When to Test
- Testing isn't crucial in exploratory coding, but becomes essential when behavior matters.
- Start testing when changes could negatively impact desired project behavior.
Don't Start with Unit Tests
- Don't start with unit tests; begin with integration or end-to-end tests.
- Focus on overall behavior rather than individual units for initial testing.