Tag

dependency

Making Better Unit Tests: part 1, the AAA pattern

From Unit Testing, Principles, Practices, and Patterns by Vladimir Khorikov

In this article I’ll give you a refresher on some basic topics. I’ll go over the structure of a typical unit test, which is usually represented by the Arrange-Act-Assert pattern. I’ll also show the unit testing framework of my choice — xUnit — and explain why I’m using it and not one of its competitors.

What is a Unit Test? Part 2: classical vs. London schools

From Unit Testing by Vladimir Khorikov

This part covers:

• The two schools of unit testing: classical and London

• The differences between unit, integration, and end-to-end tests

What is a Unit Test? Part 1: an introduction

From Unit Testing: Principles, Practices, and Patterns by Vladimir Khorikov

This article covers:

  • Definition of a unit test
  • The differences between shared, private, and volatile dependencies
  • The two schools of unit testing: classical and London
  • The differences between unit, integration, and end-to-end tests

© 2020 Manning — Design Credits