News for hackers. Stuff that matters.
Re:Stop requiring only one assertion per unit test: Multiple... by branko_d on Sunday November 06, 2022 @04:30AM (#33490747)
I have a Web API which calls a DB API which calls a stored procedure which executes several SQL statements.

The Web API has a well-defined and documented interface. Is it a “unit”?

Re:Stop requiring only one assertion per unit test: Multiple... by Izkata on Sunday November 06, 2022 @12:58PM (#33495307)
In the semantic sense? No, or at least probably not if that's where you jump to. You're still thinking in terms of syntax.

Think in terms of business rules, not the code structure: What's one thing your API does?