News for hackers. Stuff that matters.
Re:Unit Tests Considered Harmful by pc86 on Friday April 12, 2024 @09:21AM (#40012438)
I'll take it a step further than this. It doesn't matter if the client wants unit tests or not. If the developer has been hired to do the job, it's going to be up to that developer whether or not they feel unit tests will make the code better. If they do, they should do them. If they don't, they shouldn't.

Caring about the client's opinions re: unit tests is a little like caring about their opinion re: the interior color of your vehicle. Sure we can talk about it if it comes up over a beer some Friday evening but we're certainly not going to change anything based on the conversation.

Re:Unit Tests Considered Harmful by bluGill on Friday April 12, 2024 @10:00AM (#40012995)
Most clients should care about code that is long term maintainable even if it isn't in the contract. Thus tests are good. As a professional engineer (I'm intentionally invoking professional in context of other industries where the term has legal implications on quality, even though it doesn't exist for software it should!) you should care about that
Re:Unit Tests Considered Harmful by blitzar on Friday April 12, 2024 @09:49AM (#40012860)
If it is in the contract and specs (either way) then you do what you are paid to do.
Re:Unit Tests Considered Harmful by pc86 on Friday April 12, 2024 @10:26AM (#40013306)
Well of course. That's not relevant to the larger point, though.