|
|
|
|
|
by hitchdev
638 days ago
|
|
>And stuff like mocks etc take far longer to write than a 5 line fix If you test from the outside in and build up a library of functional and realistic fakes then over time then this gets quicker and easier. Ideally I think people shouldnt use mock objects at all, ever - only fakes of varying realism at the edge of the project, populated with realistic data. One reason for doing TDD is that it compels you to match a realistic test with a realistic scenario. I tend to find people lose that when they do test after, and they instead lock the test in to the current behavior of the code instead. This is not just tedious work, it's also harmful. |
|