1- [ ![ Testspace] ( http://www.testspace.com/public/img/testspace_logo.png )] ( http://www.testspace.com )
1+ [ ![ Testspace] ( http://www.testspace.com/img/Testspace.png )] ( http://www.testspace.com )
2+
23***
34
45## C++/Google Test sample for demonstrating Testspace
@@ -16,9 +17,9 @@ Using Multiple Online CI Services:
1617***
1718Publishing ** Test Content** using www.testspace.com .
1819
19- [ ![ Space Health] ( https://samples.testspace.com/projects/123 /spaces/452 /badge )] ( https://samples.testspace.com/projects/123 /spaces/452 " Test Cases ")
20- [ ![ Space Metric] ( https://samples.testspace.com/projects/123 /spaces/452 /metrics/289 /badge )] ( https://samples.testspace.com/spaces/452 /schema/Code%20Coverage " Code Coverage (lines) ")
21- [ ![ Space Metric] ( https://samples.testspace.com/projects/123 /spaces/452 /metrics/358 /badge )] ( https://samples.testspace.com/spaces/452 /schema/Static%20Analysis " Static Analysis (issues) ")
20+ [ ![ Space Health] ( https://samples.testspace.com/projects/169 /spaces/827 /badge )] ( https://samples.testspace.com/projects/169 /spaces/827 " Test Cases ")
21+ [ ![ Space Metric] ( https://samples.testspace.com/projects/169 /spaces/827 /metrics/819 /badge )] ( https://samples.testspace.com/spaces/827 /schema/Code%20Coverage " Code Coverage (lines) ")
22+ [ ![ Space Metric] ( https://samples.testspace.com/projects/169 /spaces/827 /metrics/817 /badge )] ( https://samples.testspace.com/spaces/827 /schema/Static%20Analysis " Static Analysis (issues) ")
2223
2324***
2425
@@ -39,20 +40,21 @@ $GTEST_ROOT/build/sample10_unittest --gtest_output=xml:sample10.xml
3940gcovr --root ../ --filter ".*/samples/.*" --exclude ".*_unittest.*" -x -o coverage.xml
4041</pre >
4142
42- Publish ** ` test results ` ** along with ** ` static analysis ` ** and ** ` code coverage ` **
43+ Push Content using ** Testspace client ** :
4344
4445<pre >
4546curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
46- testspace build.log{issues} [Tests]sample*.xml build/coverage.xml $TESTSPACE_TOKEN/$BRANCH_NAME
47- </pre >
47+ testspace @.testspace.txt $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$ BRANCH_NAME#$BUILD_NUMBER
48+ </pre >
4849
49- Checkout the [ Space ] ( https://samples.testspace.com/projects/cpp.googletest ) .
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 .
5051
5152***
5253
5354To replicate this sample:
54- - Account at www.testspace.com .
55- - CI Environment Variable called ** TESTSPACE_TOKEN** required:
56- - ` TESTSPACE_TOKEN ` =
` [email protected] /my-project` 57- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials ) .
58- - ` my-org-name.testspace.com/my-project ` based on your * organization* (subdomain) and * project* names.
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