Application Under Test (Windows / MSVC)
Required runtime files
Mode 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
}Mode 2: Functional testing
Option A: Wrap the AUT with run
Option B: Background listener (recommended)
Last updated
Was this helpful?

