Re:Ask HN: I'm less productive with TDD. Am I doing it wrong?
by samblr on Wednesday October 04, 2017 @01:01AM
(#15398364)
You nailed it. Mocking data while testing is such a pain. Takes the fun out of writng tests.
[ Parent
| on HN ]
Re:Ask HN: I'm less productive with TDD. Am I doing it wrong?
by geophile on Wednesday October 04, 2017 @01:33PM
(#15402270)
Not sure what you mean by mocking data. Do you mean creating test data? If I can crank out tests by just tweaking test data, that's actually a good thing. That means that my test spec is as compact as possible.
Mocking the database system is what I was referring to. Any two database systems have enough difference in datatypes, precise transaction semantics, default behaviors, and language dialect that it just isn't worth the effort. Add your actual database to your test, and just deal with the consequences.
Re:Ask HN: I'm less productive with TDD. Am I doing it wrong?
by ajeet_dhaliwal on Thursday October 05, 2017 @09:29PM
(#15413821)
Yeah mocking systems, been there done that and never again. I sincerely believe everyone should just start with the high level integration/system tests and these alone will bring enormous value when it comes to testing for regression. Don’t forget to add great reporting too. See my profile for this.