What’s new with Isolator++?

We’ve been pretty silent about Isolator++ for a while. But that doesn’t mean we’re not working on improving it to make it the best C/C++ mocking framework out there. Our work was done on the Windows version.

Here are some of the things we’ve put into Isolator++:

  • New API: ReturnValDouble – to explicitly return a double  value .

Here’s an example:

TEST_F(IsolatorTests, FakeMethodReturnsDoubleWithSetup)
{     
    WHEN_CALLED(fake->ReturnDouble()).ReturnValDouble(5.5);     
    double ret = fake->ReturnDouble();     
    ASSERT_EQ(ret, 5.5);
}
  • Isolator++ can now fake template structs.
  • You can turn on and off verbose logging using an environment variable: IPP_SUPPRESS_OUTPUT
  • Isolator was added support for Boost library since version 1.45
  • The installer now deploys examples for VS2005, VS2008 and VS2010
  • The installer now deploys the version 1.6 of GoogleTest. Examples run with this version.

Bug fixes

  • Crashes no longer occur with some types under namespaces.
  • Isolator can now return 64-bit values correctly.
  • Using TIMES_CALLED multiple times in a test caused a problem. It is now counted correctly.
  • Returning recursive fakes on template types now work correctly.
  • Functions containing a try-catch block can now be faked correctly.
  • Types containing the << operators can now be faked correctly.
  • When running tests, sometimes setting a breakpoint would cause a crash. Instead, Isolator++ shows a message guiding the user to remove the offending breakpoint. This is obviously a work in progress, and a temporary solution.

Things are happening here, and you’re going to see more in the coming weeks and months.

If you haven’t tried Isolator++ yet, or in a while, try it!!

TOP