Isolate Your Tests with Mocks
An important goal of Test Driven Development (TDD) is to be able to isolate your code under test. This means the method and class you are testing at any given time should not interact with other classes or external resources like data stores or web services. So how do you test code the relies on these things? You use mock objects to stand in for them! This session will explain the basics of mocking including the different types of mocks (mocks, stubs, fakes, etc.). You will see how to use a mocking framework to make your test writing fast, easy and more dependable. You will also learn some good patterns for creating and using mocks and shown some anti-patterns to avoid. Lastly, you'll be shown how to introduce mocking and unit testing into an environment that was not really designed for it.
About the session
The session is approved.
The presenter will not allow another presenter.
There are 16 people interested in this session.
Scheduled
- Room
- IRN-219
- Time
- 3:30 PM - 4:30 PM
- Calendar File
- Download
Edit Session