How it works...

Our integration tests are very similar to our unit tests, with the major difference being that our integration tests actually launch our application. Due to this, these tests run considerably slower than our unit tests:

WebStorm's detailed Mocha test logging shows that our integration tests suite runs about 12 times slower than our unit test suite. At this point, this time difference is clearly negligible, but as we scale up, it can easily became a bottleneck if our integration tests are taking too long. It's important to consider this hidden time cost of higher-level testing, and reinforce why it's a good idea to have more ...

Get MEAN Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.