Hacker News new | ask | show | jobs
by lazyfunctor 3680 days ago
I've read this advice couple of times "convert your unit tests to assertions". What does it actually mean? Say in the context of web dev, you add assertions to the code and when they fail you log an exception and move on?

Any links related to it will be helpful.

1 comments

Assertions are usually only run in development or test mode. So if you run an integration test, the unit tests happen inline through the assertions.