Session

A reflection on GenAI generated unit tests in C#

Many developers use GenAI like GitHub Copilot to generate their unit tests. For most developers, having just decent code coverage is enough, and the quality of the unit tests relative to the test theory is not examined. In this talk, we will, however, do just that.

Based on some working code, we will generate unit tests and check the generated tests for compliance with the test theory. Do not expect a lot of code. We will spend the better part of the talk in code.

In the session, we will use C#, xUnit and GitHub Copilot/JetBrains Junie, but the information is usable across multiple programming languages and agentic coding tools.

At the end of the session, you will leave with enough knowledge to identify the gap between the generated test code and the test theory, and have some insights into how to steer the agentic coding tools to generate better test code.

Johan Smarius

Microsoft MVP on .NET and DevOps, MCT, Coach/Trainer @ JMAC Software Solutions & Lead Microsoft Development Consultant @ Bergler

Tilburg, The Netherlands

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top