Most Unit Testing Is Waste (2014) [pdf]
rbcs-us.com
Most Unit Testing Is Waste (2014) [pdf]
1–10 of 164 posts
Re: Most Unit Testing Is Waste (2014) [pdf]
#2Re: Most Unit Testing Is Waste (2014) [pdf]
#3I'm always weary of arguments that rely on 'unit tests are more complex than the code'. If that's true, then it's correct. Tests have to encapsulate the software contract that's being enforced and should be more complex than the underlying code.
Re: Most Unit Testing Is Waste (2014) [pdf]
#4Re: Most Unit Testing Is Waste (2014) [pdf]
#5Re: Most Unit Testing Is Waste (2014) [pdf]
#6I feel like there is some subtlety here that most will miss. Specifically, "and consider". That is the part we are really bad at.
Re: Most Unit Testing Is Waste (2014) [pdf]
#7> If you want to reduce your test mass, the number one thing you should do is look at the tests that have never failed in a year and consider throwing them away. They are producing no information for you — or at least very little information. I feel like there is some subtlety here that most will miss. Specifically, "and consider". That is the part we are really bad at.
Tests also help in general development. Make some changes, then fix the tests. If you are running tests locally on your machine (and offline) how can you be sure that every time a test fails locally the failure is logged?
Re: Most Unit Testing Is Waste (2014) [pdf]
#8> If you want to reduce your test mass, the number one thing you should do is look at the tests that have never failed in a year and consider throwing them away. They are producing no information for you — or at least very little information. I feel like there is some subtlety here that most will miss. Specifically, "and consider". That is the part we are really bad at.
Those tests are helpful when you do major architectural changes, which may not happen every year. Tests also help in general development. Make some changes, then fix the tests. If you are running tests locally on your machine (and offline) how can you be sure that every time a test fails locally the failure is logged?
Re: Most Unit Testing Is Waste (2014) [pdf]
#9The logical contradictions eventually overcame me.
Re: Most Unit Testing Is Waste (2014) [pdf]
#10I've generally preferred integration tests to unit tests but Storybook has completely changed how I write React components, for the better.