BDD: TDD Done Right
A recent discussion I had about TDD lately has drawn some interest about BDD, and I thought what I was going to respond would deserve its own post in this blog. Anyone in TDD circle would agree that...
View ArticleData Access Test with Sqlite
I have mentioned briefly in previous post about 5 different approaches to write unit-test for data-access code. So now I will try to cover the first method in more detail. And among the 5, this method...
View ArticleMocking Helper for Pipe and Filter
In previous post, I was questioning the mockability of query filters in Rob Conery’s Pipe and Filter pattern. I left the post open with a hint about one possible approach to do it, hence this post. So...
View ArticleHow Do You Test Pipe and Filter?
In his notable MVC Storefront series, Rob Conery brought up a very intereting pattern, called Pipe and Filter. My first reaction to that was a bit anxious if it might hurt testability. Before I start...
View ArticleUnit Testing Data Access Code
There are a lot of challanges to write unit-tests for database facing code. It typically requires a lot of setup code, a lot of effort to maintain, and hard to make it repeatable. It has seemed to be a...
View ArticleUnit Testing Web UI with Monorail
3 rules that always apply in regard to unit-test: 1. Do NOT unit-test your infrastructure 2. Test should be automated without user intervention 3. Design is easy to test, by human...
View ArticleTDD Screencast – Episode 1
This is the beginning of series of screencasts about applying TDD in ‘real-world’-ish .Net application. This series is my answer to recent discussion in .net-Indonesia list about using Spring and...
View Article