Build Stuff'14 has ended
Back To Schedule
Wednesday, November 19 • 14:55 - 15:50
Mark Seemann - Look, no Mocks! Functional TDD with F# (Slides)

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Test-Driven Development (TDD) is supposed to be about feedback, but a recent criticism has been that it tends to cause 'test-induced damage', because the design resulting from TDD is worse than an alternative design one could produce without kowtowing to testability.

The counter-argument is that this may indicate a failure in API design, rather than a failure on the part of the TDD process.

Often, the problem with TDD is an over-reliance on Mocks, which again causes an over-emphasis on mutation. Functional Programming, with its emphasis on immutability, can help significantly pull the tests away from relying on Mocks, leading to a better overall design, and more maintainable unit tests.

This session uses F# to demonstrate how to use Functional design with TDD to remove the need for Mock objects.

avatar for Mark Seemann

Mark Seemann

Danish Programmer. Creator of various open source software, including AutoFixture. Author of Dependency Injection in .NET.

No mocks pptx

Wednesday November 19, 2014 14:55 - 15:50 EET
2. Beta

Attendees (0)