36 karma · joined May 12, 2015 (11y ago) · 7 submissions
comment 4y ago · link · parent
I can almost guarantee you the problem is the FAANG interview, not you.
comment 4y ago · link · parent
So yeah, this article is basically on the nose.
comment 4y ago · link · parent
They have their use, but they have many shortcomings.
comment 4y ago · link · parent
The same manager I mention before getting promoted, we were tasked with taking over another existing project where every test was inaccurate. I can guarantee you from experience that all your points fail when the tests are inaccurate.
It actually sounds like you are agreeing with my conclusion, with the exception of thinking bad tests are just fine.
comment 4y ago · link · parent
How do you ensure the tests themselves are accurate? Adding test cases as you encounter errors from newly revealed edge cases means the test didn’t work initially. Unit testing the unit tests is circular logic. You can manually test the unit test, same as you could manually test the code itself.
Typically, unit tests are so simple that bugs are few and easy to spot so this is a non issue, but that same argument can also be made for when the code itself does not need unit tests under the same circumstances.
7.
The Case Against Unit Tests(medium.com ↗)
1 points · by PuppyKhan · 4y ago · 6 comments