Test Independence💻 Just show me the code. In this article I cover some of the mechanics of how we can improve test independence, while managing the tradeoffs in complexity. Before that, let's recap why we should puMay 17 · 7 min readmichael-nelson.co.uk
Singleton Pattern with TestContainers and SQL Server in C#When working with web services there is often data access which could benefit from some level of coverage in integration tests. That means re-creating our storage, whatever that may be, in our tests. A key consideration with how we create our storage...Dec 7, 2023 · 3 min readmichael-nelson.co.uk
Exploring Custom Attributes in AutoFixture and xUnitWriting setup code for unit tests can be a cumbersome activity. Especially in legacy codebases where many tests may be missing, or unreliable, or when the unit being tested is larger than it would be given sufficient time and resources to refactor it...Sep 20, 2023 · 4 min readmichael-nelson.co.uk