Test VS - BredaUniversityGames/JenkinsLib GitHub Wiki
Runs C++ tests using CTest or GoogleTest and publishes JUnit results to Jenkins.
stages {
git.sync()
vs.build()
vs.test()
// ...
}Note:
vs.test()must be used withvs.build()— it reads the build configuration from context.
| Parameter | Default | Description |
|---|---|---|
VS_TEST_FRAMEWORK |
CTest |
Test framework: CTest or GoogleTest
|
VS_TEST_EXECUTABLE |
(empty) | Path to test executable (GoogleTest) or CTest build directory |
Runs tests via CMake's CTest. Set VS_TEST_EXECUTABLE to the CMake build directory (the folder containing CTestTestfile.cmake).
Runs a GoogleTest executable directly. Set VS_TEST_EXECUTABLE to the path of the compiled test binary.
- Runs the selected test framework with JUnit XML output
- Publishes JUnit results to Jenkins
- Marks the build as
UNSTABLEif any tests fail