Close Menu
NCIJ Network NCIJ Network
    What's Hot

    Could tech replace firefighters in the battle against wildfires?

    August 7, 2026

    ClickFix attack pushes macOS infostealer for crypto theft attacks

    August 7, 2026

    Former OpenAI researcher predicts brain-controlled AI coding agents by 2027

    August 7, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Could tech replace firefighters in the battle against wildfires?
    • ClickFix attack pushes macOS infostealer for crypto theft attacks
    • Former OpenAI researcher predicts brain-controlled AI coding agents by 2027
    • Wildfire Smoke Is Now a Bigger Prenatal Threat Than Human Sources of Air Pollution
    • Early release is a sign of a broken prison system | Prisons and probation
    • Teachers, students killed in Thai school shooting near Bangkok
    • 31 days of solitude: Welcome to Brussels in August – POLITICO
    • What can Dublin teach us? Milburn goes on a quest to solve youth jobs crisis | Youth unemployment
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Friday, August 7
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Artificial Intelligence

    Microsoft Open Sources code-testing-generator: a Polyglot Unit-Test Agent That Hits 92.1% Task Completion Versus 78.9% for Stock Copilot

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKAugust 7, 2026 Artificial Intelligence No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Microsoft has open sourced code-testing-generator, a polyglot agent that writes unit tests and then proves they work. It ships in the dotnet-test plugin inside the MIT-licensed dotnet/skills repository.

    The agent targets a gap that coding assistants usually leave open. A prompt like ‘generate unit tests’ does not say which framework, file location or assertions to use. code-testing-generator settles those decisions by reading the repository before it writes anything. It then plans, writes, runs and checks the tests it produces. On Microsoft’s internal 152-task benchmark, it completed 140 tasks against 120 for stock GitHub Copilot. Both setups used the same model and prompts.

    Is it deployable

    Yes. It is an agent definition along with skills, not a hosted service, so it runs inside your existing coding agent and code stays local.

    • Company stage: viable from solo maintainers upward. Startups and mid-market teams gain most, because the agent supplies repository research a small team has no time to encode. Enterprises can fork the language guidance to match internal frameworks.
    • Industries: regulated or audit-heavy software estates — financial services, healthcare, insurance, public sector — plus platform teams paying down legacy test debt.
    • Applications: backfilling tests on untested modules, generating tests for a pull-request diff, raising coverage before a release gate, and standardising conventions across polyglot monorepos.

    What the agent actually does

    It coordinates work through a Research-Plan-Implement (RPI) pipeline. It searches the repository for code needing tests, detects the language and test framework, reads existing tests for conventions, and finds the real build and test commands. That last step targets a specific failure: a test project that builds locally but never runs in CI because nothing registered it.

    The agent then picks one of three strategies. Direct writes and validates tests immediately. Single pass runs one cycle. Iterative repeats it for large scopes or coverage targets. It never modifies production code, and avoids tests that call external URLs, bind ports or depend on timing.

    The verification gate

    Before reporting completion, the agent runs five checks. It reasons about small code changes that should make the tests fail, a lightweight form of mutation testing. It looks for weak or missing assertions. It maps every requested scenario to a test. It builds the full workspace and runs the full suite. It confirms the repository’s own test command discovers the new tests.

    Benchmark results

    On Microsoft’s internal benchmark of 152 tasks from real repositories, the agent completed 140 (92.1%) versus 120 (78.9%) for stock GitHub Copilot on the same model and prompts (63% fewer failures).

    The gain is concentrated. On 89 vague prompts, the agent resolved 79 (88.8%) against 59 (66.3%), cutting failures from 30 to 10. On 63 detailed prompts, both scored 61 (96.8%). On 15 tasks targeting a specific diff, the agent passed all 15 and stock Copilot passed none.

    Notably, the agent generated 2.3% fewer tests (6,963 vs 7,129) at effectively identical line coverage (72.4% vs 72.2%). Average task time was 359 seconds against 380. Token use per completed task was 3.2% higher.

    On 45 .NET tasks, Claude Opus 4.8 reached 43/45 with the agent versus 35/45 stock; GPT-5.5 reached 41/45 versus 36/45. On the harder external SWE Atlas benchmark, completion was 16/44 versus 12/44.

    Explainer: how the agent turns one prompt into verified tests

    agent codetestinggenerator completion Copilot hits Microsoft open Polyglot Sources Stock Task UnitTest
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    Wildfire Smoke Is Now a Bigger Prenatal Threat Than Human Sources of Air Pollution

    Liquid AI Releases LFM2.5-2.6B: An On-Device Agentic Model With 128K Context, Tool Calling, And Open Weights

    Breez Announces Glow, An Open Source Bitcoin To Stablecoins Progressive Web App

    Ukraine hits two oil refineries deep in Russian territory

    Cloudflare Introduces Kitesurf: An Agent-First Web Browser That Runs Entirely in V8 Isolates on Cloudflare Workers

    Adaptive Experimentation with Meta’s Ax: A Practical Coding Guide

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Could tech replace firefighters in the battle against wildfires?

    August 7, 2026

    ClickFix attack pushes macOS infostealer for crypto theft attacks

    August 7, 2026

    Former OpenAI researcher predicts brain-controlled AI coding agents by 2027

    August 7, 2026

    Wildfire Smoke Is Now a Bigger Prenatal Threat Than Human Sources of Air Pollution

    August 7, 2026
    Latest Posts

    Bitcoin treasury company erases 7.7M shares after selling 177 BTC

    July 24, 2026

    New Dolphin X malware uses AI to rank high-value targets

    July 24, 2026

    An FDA Panel Just Endorsed These Unproven Peptides

    July 24, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    Could tech replace firefighters in the battle against wildfires?

    August 7, 2026

    ClickFix attack pushes macOS infostealer for crypto theft attacks

    August 7, 2026

    Former OpenAI researcher predicts brain-controlled AI coding agents by 2027

    August 7, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.