Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use Configuring a project for first use

Configuring a project for first use

Top  Previous  Next

Isolator++ Professional installs the following folders. They include the following contents:

 

Installed Folders

 

Folder

Contains

 

Bin

IsolatorCore.dll IsolatorCore.lib files.  You’ll need these to link to your test project and to run it.

Include\ForTests

Isolator.h header file. You’ll need to include it to compile your tests.

Examples

Solutions containing examples of using Isolator++ Professional

GTest

Google Test testing framework. You’ll need this to run the examples, although your tests can use any framework.

 

 

Creating the test application

 

In this example, we will create Isolator++ Professoinal tests running inside an executable console application. This setup works with test frameworks like Google Test, Boost Test, UnitTest++ and others.
For MSTest Projects see Setting up MS Test

 

To start, create a new C++ Console Application.

 

CreateConsoleApp

 

 

 

Configuring the test application

 

Including the .h file

 

Open the project properties. Add the Isolator++ Professional Include\ForTests folder to the include directories.

 

isolatorInclude

 

Add the IsolatorCore.lib to the linker input list. Note, we're using the x86 library, if we want the x64 bit we'll link to the library from the x64 folder.

isolatorLibLinker

 

As the last step, make sure to copy IsolatorCore.dll,symsrv.dll and msdia140.dll to the location of the tests executable path. We'll do it by using a post-build event (note that for the 64 bit version copy the dll from the x64 folder):

PostBuildCopyEvent

 

 

Now that our test project is ready to run, we'll need to add the rest of the support for Google Test.

 

That’s it!

You’ve just run your first tests. It’s time to learn more on Isolator++ Professional features.

 


Copyright  Typemock Ltd. 2009-2023.  All Rights Reserved.