Re:Ship / Show / Ask: A modern branching strategy
by icedchai on Monday September 13, 2021 @06:22PM
(#28517681)
Yes, or the guy who wants you to mock out database calls because it's not a "real unit test" otherwise. So you spend another day mocking out crap when it's both easier and less error-prone to use the real thing. I guess the time spent will pay for itself... in 10 years.
[ Parent
| on HN ]
Re:Ship / Show / Ask: A modern branching strategy
by ryan_lane on Monday September 13, 2021 @09:30PM
(#28519116)
The point here is to be able to run the tests without a database, and in this case they're probably right. Saying it's for the sake of purity of the test type is wrong, but you should mock out database calls in unit tests because you want them to run fast and without dependencies.
Move those tests to integration...