What We’ve Learned So Far

images/unit/what.png

Hey—congratulations. You have now covered all three levels of the pyramid! Here’s a quick recap of some of the things we learned about unit tests:

  • Unit tests form the base of our pyramid and are where we like to do the bulk of our testing.

  • They are extremely quick and great for rapid feedback.

  • They are highly local—which means we prefer to avoid things like network calls.

  • Mocking is a technique we can use to get at hard-to-reach places in the code that we want to test.

Now that you’ve got the basics of unit testing covered, it’s time to look at a particular kind of unit test that’s very popular when testing the logic in ...

Get The Way of the Web Tester 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.