News

Generative AI VS Code Tool Now Does Unit Testing

With generative AI being all the rage these days, Tabnine has updated its AI-powered code completion tool for Visual Studio Code with new functionality: unit testing.

The Tabnine VS Code extension in Microsoft's marketplace has garnered more than 5 million installs on the strength of its AI-assisted autocomplete functionality for JavaScript, Python, TypeScript, PHP, Go, Java, Ruby and more. Such functionality, of course, is also provided by Microsoft's IntelliSense and IntelliCode, not to mention the groundbreaking "AI pair programmer" from Microsoft-owned GitHub, called Copilot, which is powered by an advanced machine language model from Microsoft partner OpenAI.

The Tabnine VS Code Tool
[Click on image for larger view.] The Tabnine VS Code Tool (source: VS Code Marketplace).

And you might have heard of a more recent OpenAI release, called ChatGPT, which has also been used to generate code in software development.

Amid that fast-moving, AI-enriched developerscape, Tabnine last week announced unit testing generation to accelerate the software development lifecycle. It's currently in beta, so the aforementioned VS Code tool doesn't have it yet.

Tabnine Unit Test Generation in Animated Action
[Click on image for larger, animated GIF view.] Tabnine Unit Test Generation in Animated Action (source: Tabnine).

The Tel Aviv-based company said the new unit testing functionality can relieve the time-consuming drudgery of writing unit tests, typically involving tedious and repetitive coding.

"Our new unit test generation capability uses cutting-edge AI technology to generate unit tests for your code automatically, helping ensure that your code is rigorously tested, resulting in fewer bugs and better code stability -- especially important for larger projects or projects with tight deadlines," the company said.

Supported programming languages include Python, Java and JavaScript.

The company's AI tech reportedly improves over time, learning from a developer's previous coding to increasingly generate unit tests that match individual coding styles and patterns.

Note that GitHub Labs has pointed Copilot to unit testing also, with TestPilot, and developers have also used the regular Copilot tool to save time.

Taking note of such competition, Tabnine also last week published a comparison, "Tabnine Enterprise vs. GitHub Copilot Business," which includes pricing details.

Developers can sign up for early access to the beta version of the upgraded Tabnine tool.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube