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

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events