Today provided Mock Object Frameworks presentation with live coding session.
Looks like people prefers coding sessions over just presentation, so I shortened the introduction as much as possible.
I covered only the most important parts:
- why we use mock objects (a funny example was given);
- how to transform a system which can't be tested into a system which can be tested with using of mock objects
- types of mock objects: stubs and mocks themselves
- how to implement mock objects/stubs manually and with using of two major frameworks: Moq and Rhino Mocks.
I was thinking of providing one more mock object framework -- Microsoft Fakes -- but failed to do so. Some strange "Not supported" exception were thrown during "test ride" trying to raise an event from mock object. Furthermore, Microsoft Fakes framework distributed among VS 2012 Ultimate edition only, which is not suitable for the most of my listeners.
The next presentation will be about CRC cards. Will try to figure out how to conduct it in the most efficient way :)
Showing posts with label workshop. Show all posts
Showing posts with label workshop. Show all posts
Wednesday, November 28, 2012
Monday, November 12, 2012
Another TDD session is coming soon
Another TDD session is coming soon.
I prefer to gather not more than 10-15 listeners at the same time which gives me much more responsive auditory.
Feel exciting about it.
Let's bring some brightness to the world!
I prefer to gather not more than 10-15 listeners at the same time which gives me much more responsive auditory.
Feel exciting about it.
Let's bring some brightness to the world!
Thursday, November 8, 2012
First ever BDD presentation in progress
Yesterday I provided the first part of BDD presentation.
It goes quite smoothly -- most of the people were quite responsive.
I represented BDD this way:
It goes quite smoothly -- most of the people were quite responsive.
I represented BDD this way:
- revise SCRUM workflow and point out TDD place in it
- outline TDD "built-in" drawbacks (like Unit Tests != specification)
- introduce the idea that we can actually use specification as a base for our unit tests
- Reconsider testing as a whole -- we should test feature rather than a particle unit of code
- Point out that BDD specifications can be used for communication around all people involved into development process
- Implement a simple system (POS) as an example in BDD way (using SpecFlow .Net framework)
Yesterday I stopped on the last point -- it seems that 2 hours is engogh to provide BDD ideas, but not enough to show it in action.
Today will finish it.
Labels:
BDD,
lecture,
making world better,
teaching,
workshop
Tuesday, February 15, 2011
Unit Tests: Antipatterns presentation
It was a while since I did my presentations - 4 months already.
But today I starting preparations for the next one -- "Unit Testing -- antipatterns and patterns".
It seems that we need to cover not only unit tests themselves, but acceptance UI tests as well (Page Object pattern rules!)
Subscribe to:
Posts (Atom)
