23 August 2007
GTAC. Google Test Automation Conference
I'm at Google's Test Automation Conference in New York City (my old stamping ground from the '80's) and so far Mocks have been doing quite well. We had several mentions on his slides from Patric Copeland (Director of QA at Google).
There was also a presentation from Matt Heuser and Sean McMillan, "Examining Interaction-Based testing". I admit I feared a hatchet job but, actually, they presented a very balanced view. They had some good examples of Interaction Testing gone wrong, such as mocking out production code and not writing integration tests. They also pointed out the benefits of using TDD with mocks, including ending up with good code quality statistics implying good maintainability.
The one comment I had on the talk was to de-emphasise use of mocks to speed up unit test runs by mocking external (slow) resources. Our preference is to use mocks within our domain code but to try to write focussed integration tests at the outer boundaries of the system.
Labels: news
Thoughts on this? Is it fair to accept Rails as a different beast in this context?
I think most people miss the point: using mocks, in a crude way, is about getting an executable model, even if you need to describe it in [unit test] code. One you can play with to tease out requirements, iterate a design, or elicit an outbound interface as a set of expectations. From a functional perspective, if you get it right, why should you need to test it? But hey! That's what happens when you call it TDD...
Links to this post:
<< Home
© The authors


