|
|
|
|
|
by alexhutcheson
2542 days ago
|
|
If you don’t write unit tests on an assignment like that, you’ve pretty much failed. I made the same mistake in a similar situation with a different company. It’s tough because the expectations aren’t spelled out clearly, but unit tests are non negotiable. [speaking personally, not on behalf of my employer] |
|
It's not a test of skill so much as a test of expectation, hidden expectations are the worse to deal with in an interview
If we're going to wag the testing finger and say always unit tests then why not always generative tests? They'd always test more inputs, why not spin those tests infinitely? Did they test in the repl? why not always mutation testing? why not always integration testing?
I don't think people like to realise that testing is a spectrum of confidence you'll never reach 100% nor should you expect to
Dealing in bullshit absolutes here is stupid, talk to your interviewee about what they could do to ensure their code complies with its intent instead of springing hidden expectations after the fact