Embold allows users to include Google Test (GTest) results as part of the analysis for C/C++ projects. However, Embold itself does not execute tests or generate test reports. To integrate test results, user must first run GTest and generate a report using a supported format(XML). Once the report is available, users need to configure Embold to locate and process it. This ensures that test results are displayed alongside other analysis insights within the Embold UI.
Pre-requisites:
- The Embold Server must be running and properly configured.
- The user needs to have a build for their C/C++ project, which includes GTest data as part of the test runs.
- The user should run the Embold scan on the same host where the C/C++ project was built and the GTest data was generated.
- The reports should be in XML format.
Running remote-scan for GTest
- Run the
embold-scanner
:- Go to Project and click on three dot of repository(…)
Note: The repository type must be set toremote
. - Click on
Pipeline Script
- Copy the shell script
- Add the
EMBOLD_TOKEN
variable in script - Customization for shell script
- If user want to download embold-scanner manually then comment line number 6 and 7.
- If user want to download repository configuration json manually comment line number 10 and pass the path of repository configuration json file along with option
-c
. - In the repository configuration JSON, the gtest module is enabled by default, and the value for
reportDir
is set tobaseDir
by default. If the unit test reports are stored in a different location, the user should specify the parent directory of the reports in thereportDir
value inrepository-configuration.json
- Run the script.
- Go to Project and click on three dot of repository(…)
- Navigate the Unit Tests section on Embold UI to see the unit test data: