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 for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube