Vasilis Georgitzikis
@tzikis
CTO, Camperoni. Unrepentant entrepreneur. IoT and cloud stuff. Prev: codebender, P-Space, Balena, Spanner CI.
ID: 87507346
http://tzikis.com 04-11-2009 19:06:38
5,5K Tweet
869 Followers
1,1K Following
A unit test shouldn’t: 🚫 Call a DB 🚫 Run a browser 🚫 Make an HTTP call 🚫 Rely on stuff on other machines A unit test should pass without a network connection. There’s nothing wrong with doing such things in a test. But if a test does these things, it’s not a unit test.
Many businesses are penny wise, pound foolish. “We require pre-approval for small business expenses”. “We can’t afford consulting or training.” “We use the free version. We can’t afford to pay for better tools.” “We don’t pay well.” “We buy developers cheap, slow laptops.”