Snapshot log tests in .NETThis post demonstrates how to write high quality and low effort log assertions using snapshot testing.John Reilly·Dec 20·6 min readFollowasp.netc#automated testing
Azure Pipelines meet VitestThis post details how to integrate the test runner Vitest with Azure Pipelines.John Reilly·Aug 5·3 min readFollowazure pipelinesautomated testing
TypeScript Unit Tests with Debug SupportUnit tests are an important part of the development process. This post will outline how to write unit tests using TypeScript and how to debug them as well.John Reilly·Oct 1·6 min readFollowtypescriptautomated testing
Azure Pipelines meet JestLearn how to integrate Jest with Azure Pipelines to run tests as a part of your pipeline and utilize results reporting in the Azure Pipelines UI.John Reilly·Dec 30·3 min readFollowazure pipelinesautomated testing
Autofac 6, integration tests and .NET generic hostingIntegration tests using Autofac have been affected by a long-standing issue in .NET Core 3.0. Alternative approaches may not last long.John Reilly·Oct 2·2 min readFollowasp.netautomated testing
Autofac, WebApplicationFactory and integration testsA bug in ASP.NET Core v3.0 thwarts swapping in Autofac as an IOC container in WebApplicationFactory tests. A workaround exists.John Reilly·May 21·3 min readFollowasp.netautomated testing
Snapshot Testing for C#Snapshot testing is an efficient test technique for comparing outputs with JSON. Its applicable to C# too, using Fluent Assertions and a helper tool.John Reilly·Nov 17·5 min readFollowc#automated testing
Cypress and Auth0The article explains how to automate Auth0 login using Cypress, by using the auth0-js client library, and creating a custom command.John Reilly·Jul 9·4 min readFollowauthautomated testing
Karma: From PhantomJS to Headless ChromeReplace PhantomJS with new Chrome Headless to run Chrome without a UI. Migrate a test and add Chrome to your build environment.John Reilly·Aug 27·2 min readFollowautomated testing
Integration Tests with SQL Server Database SnapshotsDiscover the benefits of using database snapshots for integration tests to reduce complexity & errors in this informative article.John Reilly·Sep 12·4 min readFollowsql serverautomated testing
Instant Stubs with JSON.Net (just add hot water)A utility class can create stubs to test an untested system with complex I/O. Serializing complex data to JSON files eases the process.John Reilly·Apr 25·4 min readFollowautomated testingasp.net
Coded UI and the Curse of the Docking StationCoded UI tests struggle with docking stations due to resolution changes, causing the mouse to miss the element its aiming for.John Reilly·Jan 14·3 min readFollowautomated testing
ES6 + TypeScript + Babel + React + Flux + Karma: The Secret RecipeLearn how to set up a powerful TypeScript-React workflow with webpack, gulp, Karma, and inject in this comprehensive article.John Reilly·Dec 16·8 min readFollowreactts-loaderwebpackjavascript
Pretending to be someone you're not and the dark pit of despairWorkaround for issues with Coded UI impersonation feature. Tests can be unreliable, but the fix works well.John Reilly·Nov 26·9 min readFollowautomated testing
He tasks me; he heaps me.... I will wreak that MOQ upon him.Use Moq to simplify async testing, with ReturnAsync method. For testing a class that consumes async API, mock it using Task.Delay with Moqs Returns.John Reilly·Oct 3·2 min readFollowautomated testing
Journalling the Migration of Jasmine Tests to TypeScriptJohn describes issues migrating Jasmine tests from JS to TypeScript, including tooling, typings, and missing dependencies.John Reilly·Sep 13·6 min readFollowautomated testingtypescriptjavascript
Unit Testing an Angular Controller with JasmineJohn shares how they wrote unit tests for an Angular controller in Proverb using Jasmine 2.0, with heavily annotated JavaScript tests.John Reilly·Sep 10·3 min readFollowangularjsautomated testing
Running JavaScript Unit Tests in AppVeyorAppVeyor and Chutzpah were integrated to run C# and JavaScript unit tests in a single PowerShell script for CI purposes.John Reilly·Sep 6·3 min readFollowjavascriptautomated testing
Migrating from AngularJS to AngularTS - a walkthroughLearn how to migrate an AngularJS app from JavaScript to TypeScript in this walkthrough on a simple website/app for sending prayer requests.John Reilly·Jun 1·10 min readFollowangularjsautomated testingtypescript
Team Foundation Server, Continuous Integration and separate projects for JavaScript unit testsLearn how to run JavaScript tests on TFS/VSO by creating a separate unit test project to house tests, and installing Chutzpah on TFS/VSO.John Reilly·May 15·3 min readFollowautomated testingvisual studio
The Surprisingly Happy Tale of Visual Studio Online, Continous Integration and ChutzpahJohn recounts his experience with JavaScript unit testing using Jasmine and Chutzpah for integration with Visual Studio and Team Foundation Service.John Reilly·Mar 17·6 min readFollowautomated testingazure devopsjavascript
Integration Testing with Entity Framework and Snapshot BackupsThe article shows how to use SQL Servers snapshot backups for creating effective integration tests that dont affect production data.John Reilly·Jan 24·8 min readFollowsql serverautomated testing
Unit testing ModelStateTesting Model validation in ASP.NET MVC can be accomplished by making use of ModelStateTestController class which simulates the functional tests.John Reilly·Mar 3·5 min readFollowasp.netautomated testing
Unit Testing and Entity Framework: The Filth and the FuryControversy arises over Unit Testing with Entity Framework & MOQ. A simple class could be used to wrap all Entity Framework code.John Reilly·Oct 3·8 min readFollowautomated testingsql server
A Simple Technique for Initialising Properties with Internal Setters for Unit TestingRefactoring a legacy app includes adding unit tests, but properties with internal setters pose a problem. John explores various approaches.John Reilly·Apr 16·5 min readFollowautomated testing