3 ms·
Ask HN: How long do your unit tests take to run?
- benjiweber 12y ago20 seconds for about 5000 unit tests and 5 minutes for full suite of integration/end to end tests.
- aquilligan 12y agoYip, unit tests are like lightening. Integration tests cause the bloat. We cut a significant amount of time off by using https://github.com/grosser/parallel_tests https://github.com/grosser/parallel_tests
- topherific 12y agoExactly the same situation -- the actual unit tests are fast but when we run our integration tests it takes (relatively) forever. Which is a shame as it causes the developers to run the full test suite a lot less often than they should, and we end up catching problems right before we expected to be able to push code.
- buildops 12y agoHave you tried using any tools to speed up your integration tests? Something like Typemock Isolator which can run only the relevant tests during the build or IncrediBuild which can use unused network resources to speed up slow builds. How often are you testing?
- atmosx 12y agoWhat framework/language/computer-specs? ps. Just the idea of writing 5.000 unit tests gets me depressed.