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## Java/JUnit sample for demonstrating Testspace
@@ -15,10 +16,10 @@ Using Multiple Online CI Services:
1516***
1617Publishing ** Test Content** using www.testspace.com .
1718
18- [ ![ Space Health] ( https://samples.testspace.com/projects/124 /spaces/454 /badge )] ( https://samples.testspace.com/projects/124 /spaces/454 " Test Cases ")
19- [ ![ Space Metric] ( https://samples.testspace.com/projects/124 /spaces/454 /metrics/293 /badge )] ( https://samples.testspace.com/spaces/454 /schema/Code%20Coverage " Code Coverage (branches) ")
20- [ ![ Space Metric] ( https://samples.testspace.com/projects/124 /spaces/454 /metrics/295 /badge )] ( https://samples.testspace.com/spaces/454 /schema/Code%20Coverage " Code Coverage (methods) ")
21- [ ![ Space Metric] ( https://samples.testspace.com/projects/124 /spaces/454 /metrics/332 /badge )] ( https://samples.testspace.com/spaces/454 /schema/Static%20Analysis " Static Analysis (issues) ")
19+ [ ![ Space Health] ( https://samples.testspace.com/projects/167 /spaces/816 /badge )] ( https://samples.testspace.com/projects/167 /spaces/816 " Test Cases ")
20+ [ ![ Space Metric] ( https://samples.testspace.com/projects/167 /spaces/816 /metrics/789 /badge )] ( https://samples.testspace.com/spaces/816 /schema/Code%20Coverage " Code Coverage (branches) ")
21+ [ ![ Space Metric] ( https://samples.testspace.com/projects/167 /spaces/816 /metrics/791 /badge )] ( https://samples.testspace.com/spaces/816 /schema/Code%20Coverage " Code Coverage (methods) ")
22+ [ ![ Space Metric] ( https://samples.testspace.com/projects/167 /spaces/816 /metrics/792 /badge )] ( https://samples.testspace.com/spaces/816 /schema/Static%20Analysis " Static Analysis (issues) ")
2223
2324
2425***
@@ -31,22 +32,22 @@ Build examples:
3132 mvn cobertura:cobertura -Dcobertura.report.format=xml
3233</pre >
3334
34- Publishing results example:
35+ Push Content using ** Testspace client ** :
3536
3637<pre >
37- testspace target/pmd.xml [Tests]target/surefire-reports/TEST*.xml target/site/cobertura/coverage.xml $TESTSPACE_TOKEN/$BRANCH_NAME
38- </pre >
38+ curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
39+ testspace @.testspace.txt $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$BRANCH_NAME#$BUILD_NUMBER
40+ </pre >
3941
40- Checkout the [ Space ] ( https://samples.testspace.com/projects/java.junit ) .
42+ Checkout the published [ Test Content ] ( https://samples.testspace.com/projects/testspace-samples: java.junit ) . 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.
4143
4244***
4345
4446To replicate this sample:
45- - Account at www.testspace.com .
46- - CI Environment Variable called ** TESTSPACE_TOKEN** required:
47- - ` TESTSPACE_TOKEN ` = ` credentials@my-org-name.testspace.com/my-project `
48- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials ) .
49- - ` my-org-name.testspace.com/my-project ` based on your * organization* (subdomain) and * project* names.
50-
51-
47+ - Setup account at www.testspace.com .
48+ - Create a Environment variable called ` TESTSPACE_TOKEN `
49+ - ` TESTSPACE_TOKEN ` = ` credentials@Your-Org-Name.testspace.com `
50+ - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials )
51+ - 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
52+
5253
0 commit comments