87. Introduction to Snapshot testing and using Verify.Xunit
Content type
Video
87. Introduction to Snapshot testing and using Verify.Xunit
Michiel and Oscar discuss snapshot testing, which is a type of data comparison test. Snapshot testing saves the output of a test and compares it to the output on subsequent runs to detect any changes. Michiel demonstrates how to write snapshot tests using Verify.Xunit library in C#. They show how snapshot testing can detect unintended changes or bugs introduced when code is modified. Their demo uses a simple employee mapper to map personal data to employee data. Bugs are intentionally introduced to demonstrate how snapshot testing fails when the output changes unexpectedly.
Links for more information:
More videos
-
143. Harness Engineering: How to Build Better AI Coding Agents
What is harness engineering? Learn how tools, context and automated checks help AI coding agents like GitHub Copilot deliver consistent, maintainable code.Content typeVideo
-
142. Quantum Computing: Let's Write Some Actual Code! (Q# & Azure Quantum)
Get started with quantum computing in Q#: Christian and Jelle work with qubits, superposition and entanglement, and run code on Azure Quantum.Content typeVideo
-
141. Quantum Computing: From Qubits to Algorithms
How do quantum computers find the right answer? Christian and Jelle on qubits, interference, quantum gates and Grover’s and Shor’s algorithms.Content typeVideo
Stay up to date with our Betatalks and tech updates!
Sign up and receive a biweekly update with the latest knowledge and developments.