in reply to Re: Does anybody write tests first?
in thread Does anybody write tests first?
It helped, but it didn't replaced tests.
Why? Because the code has to be run in order to check these precoditions, postconditions, class invariants etc.
And if a method isn't called during testing, all your assertions are vain.
I ended up rerunning the application all over just to make sure these assertions were executed and checked. But the test suite should have done that, not me manually.
There's nothing wrong with DBC (and I like the fact that Perl 6 will come with it by default), but it's just not enough.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Does anybody write tests first?
by educated_foo (Vicar) on Feb 22, 2008 at 15:07 UTC | |
by amarquis (Curate) on Feb 22, 2008 at 16:45 UTC | |
by cLive ;-) (Prior) on Feb 22, 2008 at 18:46 UTC |