Capturing Test Events (Windows / MSVC)
Overview
Prerequisite for GTest scenarios
Scenario 1: In-process unit tests
SL.Agent.Cpp.exe startExecution `
--tokenFile ./sltoken.txt `
--labId ci-main-mycppapp `
--buildSessionIdFile buildSessionId.txt `
--testStage Unit-Tests
try {
SL.Agent.Cpp.exe run `
--tokenFile ./sltoken.txt `
--labId ci-main-mycppapp `
--buildSessionIdFile buildSessionId.txt `
--testStage Unit-Tests `
--target .\bin\Release\MyCppApp.Tests.exe `
--targetArgs "--gtest_output=xml:.\TestResults\results.xml"
} finally {
SL.Agent.Cpp.exe endExecution `
--tokenFile ./sltoken.txt `
--labId ci-main-mycppapp `
--buildSessionIdFile buildSessionId.txt `
--testStage Unit-Tests
}Scenario 2: External GTest test framework
Scenario 3: Non-GTest frameworks
Last updated
Was this helpful?

