Isolator++ v5 is here! If you’ve been using Isolator++ for your C++ unit testing, you’ll be excited to know that the latest version introduces significant improvements designed to make your testing workflow smoother, more intuitive, and more powerful than ever before.
What’s New in Isolator++ v5?
In this release, we’ve made a major shift by moving from a MACRO-based API to a language-based API. This change provides several benefits that will streamline your development process:
- Improved Usability: The new API is easier to read and work with. With more natural syntax and clearer function calls, you’ll spend less time figuring out how to use the framework and more time focusing on writing tests.
- Better Discoverability: Isolator++ v5 is designed to be intuitive and easy to explore. The API structure makes it easier to find what you need and understand how to apply it in your projects.
- Native Performance: By adopting a mostly native implementation, Isolator++ v5 offers faster, more efficient execution of unit tests. This means better performance without sacrificing quality.
- Cleaner Code: The language-based API eliminates the need for complex macros, making your unit tests easier to write, read, and maintain.
Example of Isolator++ v5 in Action
Here’s a simple example to illustrate the ease of use with the new language-based API:
1 2 3 4 5 6 7 8 |
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 } |
As you can see, Isolator++ v5 enables you to write cleaner and more intuitive test code, and you no longer need to worry about cleaning up after yourself.
Get started with Isolator++ v5 today! It’s free for developers, so give it a try and see how it can improve your C++ testing workflow.