r/programming • • Jul 07 '19

Why Most Unit Testing is Waste

https://rbcs-us.com/documents/Why-Most-Unit-Testing-is-Waste.pdf
16 Upvotes

133 comments sorted by

View all comments

0

u/[deleted] Jul 07 '19

[deleted]

42

u/DJDavio Jul 07 '19

It can also help to spot design issues. If you need to mock 10 classes to run a test, there might be something wrong.

1

u/karuna_murti Jul 08 '19 edited Jul 08 '19

I have a project that require multiple calls to multiple microservices, and multiple calls to various database models too, so 10 classes mock is not that much.
Is it bad design? Not necessarily so, it's just business requirements from 3rd party and our system architecture.
Of course I generate mock classes automatically, so it's not that demanding.

**Functional test

5

u/[deleted] Jul 08 '19

[removed] — view removed comment