Ask HN: How do you test your app?
Hey guys, how much time you all spend in writing unit test cases?<p>In early stage startups, since application design under goes changes with each iteration, unit test cases needs changes. And it gets harder to keep unit test cases consistent with the code with iterations. Suggestions?<p>Do you think is it OK to burn few initial customers? (if some use cases have not been tested, few customers will face problems)<p>Thoughts?
(
5 comments
| 13 points
| on HN
)
The best thing is to make sure you're using tools that are flexible and scalable. Also, decide what to test. You don't test basic logic like 1+1=2.
Unit tests are intended to catch a specific type of bugs but not all errors. It's not usability testing. If you're not doing TDD (ideally) at least you can test legacy code and strive for high code coverage
Scripting out unit tests, integration tests, feature tests, regression tests is good, but there's always going to be stuff you miss. I'm not saying you have to hire a full-time tester, but get your friends, family, or other people good at breaking stuff to test your app. You'll be amazed how some people will use (i.e. break) your app in a way you never considered.