Integrating with Jenkins

Top  Previous  Next

To run your Isolator++ Professional tests on your Jenkins agents you'll need to follow the steps below:

 

If you haven't set your license yet, as described here, you can do it via Jenkins build steps:

 

1. In your Jenkins CI, click "Add build step" and select "Execute shell".
2. In the "Command" windows set the license:

/usr/share/typemock/IsolatorConfigurator --company <Company> --key <License> --accept_eula

 

JenkinsSetLicense

Note: Setting the license needs to be done once per machine, so once this step is done you don't have to keep doing it.

This is useful when you're using on-demand build agents and you need to set the license anew.

This also helps managing the license on all your agents, reducing the need of updating each agent manually.

 

Running the tests

Isolator++ Professional requires setting LD_BIND_NOW=1, and you need to set it before running your tests on the build agent as well.

If you're using a plugin to set the environment variable just add the relevant build step to set the variable (such as EnvInject or Build Env Propagator).

If you don't have a plugin for setting environment variables you'll need to add this line to the script that runs the tests.

Make sure you set LD_BIND_NOW=1 before running the tests.

For example:

JenkinsSetLDRunTests

 

To configure your tests to build and run with Isolator++ Professional, see Configure Test Code for Isolator++ Professional.

 

Please note that the Build Server is not a part of the free edition.


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