UpTrajectory Review

Microsoft’s New Open-Source Tool Simplifies Unit Test Generation

robot writing checklist on clipboard
Photo: Tima Miroshnichenko / Pexels

UpTrajectory Review

Microsoft shipped code-testing-generator on 07/31/2026, an open-source agent that writes unit tests for code in any programming language. The tool lives in the dotnet/skills repository on GitHub and plugs into GitHub Copilot CLI, Visual Studio Code, and VS Code Insiders. It scans a repository, detects the language and test framework, studies existing tests for style, then plans, writes, and validates new tests before it finishes. Microsoft built it on a research-plan-implement pipeline that picks one of three modes: direct for small jobs, single pass for medium ones, and iterative for large requests or coverage goals.

For a small shop with no dedicated QA hire, this tool attacks a real pain point. Writing unit tests takes hours that most operators bill to clients or spend on product work. A tool that drafts tests in any language could cut that time sharply. Microsoft also claims the agent checks its own output: it hunts for weak assertions, confirms small code changes break the tests, and runs the full test suite. That self-check matters because a test that never fails is worse than no test. It gives the developer a starting point rather than a blank page, and the validation step filters out the most obvious junk before a human ever sees it.

The scope limit is the real story here. Microsoft states plainly that the agent writes unit tests only. Integration tests, end-to-end tests, browser tests, and performance tests sit outside its reach. That gap matters because unit tests catch logic errors, not broken workflows. A checkout flow that fails at the payment step will pass every unit test. We also note the tool ships as a preview plugin in VS Code, so early adopters should expect rough edges and shifting behavior. The iterative mode that chases coverage goals could also produce bloated test files that satisfy a metric without adding real protection, a pattern that already plagues teams who treat coverage numbers as a target rather than a signal.

The license question will shape adoption more than the feature list. Microsoft calls the tool open source, but small operators should read the repository terms before they build a workflow around it. Some Microsoft projects carry patent grants or restrictions that complicate commercial use. Teams that rely on a different editor or CI pipeline face a second hurdle: the tool currently runs through Copilot CLI or VS Code plugin support, so shops using JetBrains IDEs or plain terminal setups get nothing today. That platform lock-in may ease over time, but betting on a preview plugin for a core development workflow carries real risk if Microsoft changes direction or deprecates the integration.

Operators who want to test this should start with a low-risk internal project, not a client codebase. Pick a repository with decent test coverage already, run the agent, and compare its output against tests a developer would write by hand. Watch for false confidence: tests that pass but assert nothing. The tool also needs clear build and test commands to validate its own work, so repositories with messy or undocumented setups may trip it up. Microsoft plans to expand beyond unit tests, so the tool could become a broader safety net. For now, treat it as a drafting assistant that still needs a human eye on every line it writes.

The broader trend matters more than this single release. Microsoft, GitHub, and Google have all shipped coding agents this year, and test generation is the natural next battleground. Tools that handle the tedious parts of software development will compress timelines for small teams and shift what developers spend their time on. Operators who build software should watch how these agents evolve, because the shops that adopt them early will ship faster and cheaper than those that wait. The risk is over-reliance: a team that trusts generated tests without reviewing them will ship bugs with more confidence, not fewer.

“Microsoft has released code-testing-generator, an open-source agent for generating unit tests in any programming language, according to the company.” — InfoWorld

Takeaway: Test this on an internal project first, and treat every generated test as a draft that needs human review before it protects your code.

Excerpt from the original — InfoWorld

Microsoft has released code-testing-generator, an open-source agent for generating unit tests in any programming language, according to the company.

Released July 31, the code-testing-generator agent learns from the user’s repository, then plans, writes, and checks the tests to prove that they work. Currently the agent writes unit tests only. Integration tests, end-to-end tests, browser tests, and performance tests are outside its current scope, Microsoft said.

The agent coordinates test generation using the “research-plan-implement” (RPI) pipeline. First the agent searches the repository for the code that needs tests, detecting the language and test framework and looking for existing tests to guide its work, and finding the correct commands for building and running the tests.

Next the agent chooses the right amount of work from three paths:

Direct: Read the relevant …