logoalt Hacker News

braptoday at 2:28 PM5 repliesview on HN

Do people actually send PRs with no tests? That is so bizarre to me


Replies

pjdesnotoday at 2:34 PM

If your review was based on features shipped, and your bosses let you send PRs with no tests, would you? And before you say "no" - would you still do that if your company used stack ranking, and you were worried about being at the bottom of the stack?

Developers may understand that "XYZ is better", but if management provides enough incentives for "not XYZ", they're going to get "not XYZ".

show 3 replies
xyzzy123today at 3:05 PM

It depends on the application but there are lots of situations where a proper test suite is 10x or more the development work of the feature. I've seen this most commonly with "heavy" integrations.

A concrete example would be adding say saml+scim to a product; you can add a library and do a happy path test and call it a day. Maybe add a test against a captive idp in a container.

But testing all the supported flows against each supported vendor becomes a major project in and of itself if you want to do it properly. The number of possible edge cases is extreme and automating deployment, updates and configuration of the peer products under test is a huge drag, especially if they are hostile to automation.

show 1 reply
weinzierltoday at 2:50 PM

> "Do people actually send PRs with no tests?"

Rarely

Do people send PRs with just enough mostly useless tests, just to tick the DoD boxes.

All the time.

brianwawoktoday at 2:41 PM

When I spell text wrong! Or want to add a log. Lots of reasons something is too silly to need a test.

liampullestoday at 3:01 PM

I've seen it many times. I think it often arises in business that are not very technical at their core.