Sample demonstrates techniques for using Testspace with C++ code and the Google Test framework.
- Using a Testspace Project that is
connected
with this GitHub Repo - Using 3 Online CI services for demonstration purposes only
- Can review the Results at testspace-samples:cpp.cpputest
- Refer to our Help for more information
Using Multiple Online CI Services:
Publishing Results using www.testspace.com.
Download and configure the Testspace client
mkdir -p $HOME/bin curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin testspace config url samples.testspace.com
Build Examples provided by the Google Test framework:
make -C $GTEST_ROOT/build |& tee build.log ; test ${PIPESTATUS[0]} -eq 0 $GTEST_ROOT/build/sample1_unittest --gtest_output=xml:sample1.xml $GTEST_ROOT/build/sample2_unittest --gtest_output=xml:sample2.xml $GTEST_ROOT/build/sample3_unittest --gtest_output=xml:sample3.xml $GTEST_ROOT/build/sample4_unittest --gtest_output=xml:sample4.xml $GTEST_ROOT/build/sample5_unittest --gtest_output=xml:sample5.xml $GTEST_ROOT/build/sample6_unittest --gtest_output=xml:sample6.xml $GTEST_ROOT/build/sample7_unittest --gtest_output=xml:sample7.xml $GTEST_ROOT/build/sample8_unittest --gtest_output=xml:sample8.xml $GTEST_ROOT/build/sample9_unittest --gtest_output=xml:sample9.xml $GTEST_ROOT/build/sample10_unittest --gtest_output=xml:sample10.xml gcovr --root ../ --filter ".*/samples/.*" --exclude ".*_unittest.*" -x -o coverage.xml
Push Content using Testspace client
testspace build.log{lint} [Tests]sample*.xml coverage.xml