2 ms·
> If you find your testers splitting up functions to support the testing process, you’re destroying your system Why Most Unit Testing is Waste 4 architecture a
by kissgyorgy 7y ago
> If you find your testers splitting up functions to support the testing process, you’re destroying your system
Why Most Unit Testing is Waste 4 architecture and code comprehension along with it. Test at a coarser level of granularity.
This is very much in line with DHH's opinion about testing in general (the discussion "TDD is dead" is about this). He said that he doesn't want to split logic for the sake of testing, so HE drives the design NOT tests. I very much agree with this. I think a human can design better code (meaning that's easier to use, so easier to consume by other humans) than any automated process (like TDD).
I noticed his blog post quotes this PDF:
https://dhh.dk/2014/tdd-is-dead-long-live-testing.html https://dhh.dk/2014/tdd-is-dead-long-live-testing.html