The hardest part of testing is getting the ball rolling. Once you’ve picked your tools and started writing tests, the added confidence you have in making changes to your code, and the time you save in repetitive manual testing, can quickly become addictive! If you never got over that initial speedbump, or you’ve tried testing but it hasn’t yet clicked, this talk is for you.
- Picking a testing framework: unittest, nose, py.test. (Don’t waste time on this, just pick one).
- Writing your first test.
- Unit tests and integration tests.
- Outside-in vs inside-out testing.
- Do I have to write my tests first?
- Mocking: why to do it, why not to do it, and tools that can help.
- Testing persistence code: fixtures and object mothers.
- Measuring code coverage with coverage.py; using code coverage as a driver to know what tests you’re missing.
- Using WebTest for integration testing of web code.
- Introducing tests into an untested legacy codebase.
No events scheduledInvite us to present
Previously Presented At…
Ask us anything. We want to answer your questions, and get to know you – your needs, goals, and expertise – so we can provide thoughtful advice, and help guide you to a successful launch of your web project.Schedule a call with Miriam