Close Menu
NCIJ Network NCIJ Network
    What's Hot

    It’s easy to ignore the Lib Dems, but they could soon hold the balance of power | Rafael Behr

    September 23, 2026

    Trump rallies Shield of the Americas coalition against drug cartels | United Nations News

    September 23, 2026

    Das Neukölln-Problem der Linken – POLITICO

    September 23, 2026
    Facebook X (Twitter) Instagram
    Trending
    • It’s easy to ignore the Lib Dems, but they could soon hold the balance of power | Rafael Behr
    • Trump rallies Shield of the Americas coalition against drug cartels | United Nations News
    • Das Neukölln-Problem der Linken – POLITICO
    • Critics of UK government’s economic forecaster are ‘shooting the messenger’, say MPs | Office for Budget Responsibility
    • Burnham navigates diplomatic rapids in first Trump meeting, but turbulent waters lie ahead | Andy Burnham
    • Diesel surge costs European drivers €203mn per day
    • ‘We’re already fighting yesterday’s battle’: Greece’s prime minister gets candid about AI
    • OpenAI Releases GPT-6 Sol and Luna: 50% Cheaper API Pricing and Benchmarks
    • 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
    Wednesday, September 23
    • 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

    OpenAI Releases GPT-6 Sol and Luna: 50% Cheaper API Pricing and Benchmarks

    Open wounds and eyes that can’t close – women warn about cheap bleph eyelid surgery

    SpeakON Ships a MagSafe AI Voice Button With Its Own Microphone: Turning Your Voice into Polished Communication, and Action across Apps

    Nightmare Eclipse Drops New Microsoft Defender Exploit After Revealing Identity

    Anthropic Releases Claude Opus 5.5: Fable 5.1-Level Performance at 40% Lower Running Cost Than Opus 5

    Rabbit Is Back, This Time With an AI Agent App

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    It’s easy to ignore the Lib Dems, but they could soon hold the balance of power | Rafael Behr

    September 23, 2026

    Trump rallies Shield of the Americas coalition against drug cartels | United Nations News

    September 23, 2026

    Das Neukölln-Problem der Linken – POLITICO

    September 23, 2026

    Critics of UK government’s economic forecaster are ‘shooting the messenger’, say MPs | Office for Budget Responsibility

    September 23, 2026
    Latest Posts

    COLDCARD security audit phishing attack installs remote access tool

    August 5, 2026

    Reddit aims to make ‘karma’ less important for first-time posters with shift to AI moderation tools

    August 5, 2026

    Right turn on green: is the Telegraph changing its tune on the climate? | Daily Telegraph

    August 5, 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

    It’s easy to ignore the Lib Dems, but they could soon hold the balance of power | Rafael Behr

    September 23, 2026

    Trump rallies Shield of the Americas coalition against drug cartels | United Nations News

    September 23, 2026

    Das Neukölln-Problem der Linken – POLITICO

    September 23, 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.