Typemock, a leader in software testing solutions, is proud to announce the release of Isolator++ v5, a transformative update to its C++ unit testing framework. Moving away from the previous MACRO-based API, Isolator++ v5 introduces a language-based API, designed to improve usability, performance, and maintainability for developers.
With Isolator++ v5, developers now have access to a cleaner, more intuitive syntax that improves the overall testing experience. The new API makes it easier to write and maintain tests while ensuring better discoverability of methods and features. This update makes the process of mocking and isolating dependencies in C++ more efficient than ever before.
Key Features of Isolator++ v5:
- Language-Based API: The transition from a MACRO-based API to a language-based approach enhances readability, clarity, and ease of use, making Isolator++ v5 more accessible to developers at all skill levels.
- Better Discoverability: The new API structure makes it simpler to explore and learn about available features, helping developers quickly understand how to leverage Isolator++ to its fullest potential.
- Native Performance: With a mostly native implementation, Isolator++ v5 offers faster execution of unit tests, providing a more efficient testing framework for large-scale projects.
- Cleaner Code: By eliminating the need for complex macros, developers can now write cleaner, more maintainable test code, which results in easier collaboration and debugging.
“We’re excited to release Isolator++ v5,” said Eli Lopian, CEO at Typemock. “By moving to a language-based API, we’re not only improving the developer experience but also setting the stage for a more powerful and future-proof testing framework. This is a huge leap forward for C++ developers who want to build reliable and scalable applications.”
Using AI to Enhance Unit Testing
In addition to the powerful new language-based API, Isolator++ v5 now integrates with AI-powered tools to automatically generate unit tests. By leveraging large language models (LLMs), developers can easily generate comprehensive unit tests that cover edge cases and ensure code reliability.
Here’s how you can use AI to generate unit tests with Isolator++ v5:
- Leverage AI for Test Creation: Use the Typemock Isolator++ API and the provided LLM prompt to generate unit tests for your C++ classes. For instance, by using the AI Test Generation prompt, developers can request AI to generate C++ unit tests automatically, tailored to MSTest/Gtest and Typemock Isolator++ V5 specifications.
- Comprehensive Coverage: AI ensures that the generated unit tests provide full code coverage by analyzing the structure of the code and suggesting tests for all relevant cases.
- Streamlined Workflow: The process integrates directly into the Isolator++ environment, allowing you to use AI-generated tests with minimal setup. Simply use the provided prompt and AI will assist in creating fully compilable C++ unit tests.
Example of the New API in Action:
TEST(ChainsBehavior, ChainInsideCallTo) {
Isolator a;
auto fake = a.Fake.Instance<FlightSimulater>();
a.CallTo(fake->GetPlane(A::Eq(“IPP_V5”)->GetSpeed())
.WillReturn(1000);
// No need to cleanup
}
In Isolator++ v5, the language-based API enables developers to write unit tests that are easier to read, maintain, and integrate into modern development workflows.
Availability
Isolator++ v5 is available for free to all developers, ensuring that even smaller teams or individuals can take advantage of this powerful tool. To get started with Isolator++ v5, simply visit here and follow the easy installation guide.
Explore AITechPark for the latest advancements in AI, IOT, Cybersecurity, AITech News, and insightful updates from industry experts!