Getting started (1): Configuring a project for the first use
Isolator++ installs the following folders. They include the following contents:
|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++|
|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++ 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:
Configuring the test application
Including the .h file
Open the project properties. Add the Isolator++ Include\ForTests folder to the include directories.
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.
As the last step, make sure to copy IsolatorCore.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):
Now that our test project is ready to run, we'll need to add the rest of the support for Google Test.
You've just run your first tests. It's time to learn more on Isolator++ features.