<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/from-generated-code-to-trusted-code-with-a-unit-test-agent-ipcxebvho" -->

---
title: From generated code to trusted code with a unit-test agent
description: Microsoft&#x27;s .NET team built an open-source polyglot unit-test agent called code-testing-generator, available in the dotnet/skills repository. Unlike a plain...
canonical: https://daily.dev/posts/from-generated-code-to-trusted-code-with-a-unit-test-agent-ipcxebvho
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: From generated code to trusted code with a unit-test agent | daily.dev
og:description: Microsoft&#x27;s .NET team built an open-source polyglot unit-test agent called code-testing-generator, available in the dotnet/skills repository. Unlike a plain...
og:url: https://daily.dev/posts/from-generated-code-to-trusted-code-with-a-unit-test-agent-ipcxebvho
og:image: https://api.daily.dev/og/posts/IpcxeBvhO.png
og:image:alt: From generated code to trusted code with a unit-test agent
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[.NET Blog](https://daily.dev/sources/dotnet)

[Read post](https://api.daily.dev/r/IpcxeBvhO)

# [From generated code to trusted code with a unit-test agent](https://api.daily.dev/r/IpcxeBvhO "Go to post")

Microsoft's .NET team built an open-source polyglot unit-test agent called code-testing-generator, available in the dotnet/skills repository. Unlike a plain Copilot prompt, the agent first learns the repository's language, test framework, conventions, and build commands before writing tests. It selects one of three execution paths (direct, single-pass, or iterative) based on task scope, then validates tests with lightweight mutation testing, assertion checks, and a full CI-compatible test run. Benchmarked against 152 internal tasks, the specialized agent achieved a 92.1% completion rate versus 78.9% for stock GitHub Copilot, with 63% fewer failures — gains concentrated on vague prompts. It supports .NET, Python, Go, TypeScript, Java, Rust, and more, and is usable today via GitHub Copilot CLI and VS Code.

[#testing](/tags/testing "Check all #testing posts")[#github](/tags/github "Check all #github posts")[#ai-agents](/tags/ai-agents "Check all #ai-agents posts")[#.net](/tags/.net "Check all #.net posts")

Jul 31•9m read time•From [devblogs.microsoft.com](https://api.daily.dev/r/IpcxeBvhO "devblogs.microsoft.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/612b9f35e615bd792459629e4463331d?_a=AQAEuop)](https://api.daily.dev/r/IpcxeBvhO "Go to post")

Table of contents

[What happens after the prompt Copy link](https://api.daily.dev/r/IpcxeBvhO?a=what-happens-after-the-prompt "What happens after the prompt Copy link")[What we measured Copy link](https://api.daily.dev/r/IpcxeBvhO?a=what-we-measured "What we measured Copy link")[What we learned and what comes next Copy link](https://api.daily.dev/r/IpcxeBvhO?a=what-we-learned-and-what-comes-next "What we learned and what comes next Copy link")[Try the agent Copy link](https://api.daily.dev/r/IpcxeBvhO?a=try-the-agent "Try the agent Copy link")

22.3K Impressions14 Upvotes2 Comments

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![.NET Blog's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f23eb59371bd4f07aeef64c4eef73266)](https://daily.dev/sources/dotnet)

[.NET Blog](https://daily.dev/sources/dotnet "https://daily.dev/sources/dotnet")

dotnet offers insights into .NET development, C# programming language, and cross-platform applicatio... Read more

1.2K Followers

•

2.3K Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

14

2

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"From generated code to trusted code with a unit-test agent","url":"https://daily.dev/posts/from-generated-code-to-trusted-code-with-a-unit-test-agent-ipcxebvho","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/from-generated-code-to-trusted-code-with-a-unit-test-agent-ipcxebvho"},"datePublished":"2026-07-31T15:00:58.488Z","dateModified":"2026-08-07T19:31:07.670Z","description":"Microsoft's .NET team built an open-source polyglot unit-test agent called code-testing-generator, available in the dotnet/skills repository. Unlike a plain...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/612b9f35e615bd792459629e4463331d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/612b9f35e615bd792459629e4463331d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":".NET Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":".NET Blog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f23eb59371bd4f07aeef64c4eef73266","url":"https://daily.dev/sources/dotnet"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/from-generated-code-to-trusted-code-with-a-unit-test-agent-ipcxebvho","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"testing,github,ai-agents,.net","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":".NET Blog","item":"https://daily.dev/sources/dotnet"},{"@type":"ListItem","position":3,"name":"From generated code to trusted code with a unit-test agent"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/from-generated-code-to-trusted-code-with-a-unit-test-agent-ipcxebvho","comment":[{"@type":"Comment","text":"It sounds like a very good tool to validate and test our code or the code generated by agentic code tools.","datePublished":"2026-08-01T05:24:32.261Z","url":"https://daily.dev/posts/IpcxeBvhO#c-tu7TldABD","author":{"@type":"Person","name":"Luis Puc","url":"https://daily.dev/luispsarmiento","image":"https://avatars.githubusercontent.com/u/25454970?v=4"}},{"@type":"Comment","text":"92% vs 79% completion is a solid number but the more interesting stat buried in there is 63% fewer failures concentrated on vague prompts, that’s the actual signal a repo-aware agent beats a generic Copilot call. mutation testing as the validation step instead of just checking for green CI is the right call too, plenty of agents ship tests that pass but don’t actually assert anything.","datePublished":"2026-08-02T18:15:39.833Z","url":"https://daily.dev/posts/IpcxeBvhO#c-qzohyYhqL","author":{"@type":"Person","name":"PDFops","url":"https://daily.dev/pdfopsdev","image":"https://media.daily.dev/image/upload/s---8isRBKc--/f_auto/v1782922291/avatars/avatar_orjMeK8QKaaVZwGq7ScPz?_a=BAMAMicg0"}}]}
```

