1- [ ![ Testspace] ( http ://www.testspace.com/img/Testspace.png)] ( http ://www.testspace.com)
1+ [ ![ Testspace] ( https ://www.testspace.com/img/Testspace.png)] ( https ://www.testspace.com)
22
33***
44
55## C++/Google Test sample for demonstrating Testspace
66
77Sample demonstrates techniques for using Testspace with C++ code and the [ Google Test framework] ( https://code.google.com/p/googletest ) .
8+ * Using a Testspace Project that is ` connected ` with this GitHub Repo
9+ * Using 3 Online CI services for demonstration purposes only
10+ * Can review the Results at [ testspace-samples: cpp .cpputest] ( https://samples.testspace.com/projects/testspace-samples:cpp.googletest )
11+ * Refer to our [ Getting Started] ( https://help.testspace.com/getting-started ) help articles for more information
812
913***
1014Using Multiple Online CI Services:
@@ -15,13 +19,20 @@ Using Multiple Online CI Services:
1519
1620
1721***
18- Publishing ** Test Content ** using www.testspace.com .
22+ Publishing Results using www.testspace.com .
1923
2024[ ![ Space Health] ( https://samples.testspace.com/spaces/827/badge )] ( https://samples.testspace.com/spaces/827 " Test Cases ")
2125[ ![ Space Metric] ( https://samples.testspace.com/spaces/827/metrics/819/badge )] ( https://samples.testspace.com/spaces/827/schema/Code%20Coverage " Code Coverage (lines) ")
2226[ ![ Space Metric] ( https://samples.testspace.com/spaces/827/metrics/817/badge )] ( https://samples.testspace.com/spaces/827/schema/Static%20Analysis " Static Analysis (issues) ")
2327
2428***
29+ Download and configure the Testspace client
30+
31+ <pre >
32+ mkdir -p $HOME/bin
33+ curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin
34+ testspace config url samples.testspace.com
35+ </pre >
2536
2637Build Examples provided by the Google Test framework:
2738
@@ -40,21 +51,8 @@ $GTEST_ROOT/build/sample10_unittest --gtest_output=xml:sample10.xml
4051gcovr --root ../ --filter ".*/samples/.*" --exclude ".*_unittest.*" -x -o coverage.xml
4152</pre >
4253
43- Push Content using ** Testspace client** :
54+ Push Content using Testspace client
4455
4556<pre >
46- curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
47- testspace @.testspace.txt $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$BRANCH_NAME#$BUILD_NUMBER
57+ testspace build.log{lint} [Tests]sample*.xml coverage.xml
4858</pre >
49-
50- Checkout the published [ Test Content] ( https://samples.testspace.com/projects/testspace-samples:cpp.googletest ) . Note that the ` .testspace.txt ` file contains the [ set of files] ( http://help.testspace.com/how-to:publish-content#publishing-via-content-list-file ) to publish.
51-
52- ***
53-
54- To replicate this sample:
55- - Setup account at www.testspace.com .
56- - Create a Environment variable called ` TESTSPACE_TOKEN `
57- - ` TESTSPACE_TOKEN ` =
` [email protected] ` 58- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials )
59- - To [ use Testspace with a CI system] ( http://help.testspace.com/how-to:add-to-ci-workflow ) , store ` TESTSPACE_TOKEN ` as a secure environment variable
60-
0 commit comments