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/TestNG sample for demonstrating Testspace
@@ -17,13 +18,11 @@ Using Multiple Online CI Services:
1718***
1819Publishing ** Test Content** using www.testspace.com .
1920
20- [ ![ Space Health] ( https://samples.testspace.com/projects/125/spaces/456/badge )] ( https://samples.testspace.com/projects/125/spaces/456 " Test Cases ")
21- [ ![ Space Metric] ( https://samples.testspace.com/projects/125/spaces/456/metrics/299/badge )] ( https://samples.testspace.com/spaces/456/schema/Code%20Coverage " Code Coverage (branches) ")
22- [ ![ Space Metric] ( https://samples.testspace.com/projects/125/spaces/456/metrics/301/badge )] ( https://samples.testspace.com/spaces/456/schema/Code%20Coverage " Code Coverage (methods) ")
23- [ ![ Space Metric] ( https://samples.testspace.com/projects/125/spaces/456/metrics/333/badge )] ( https://samples.testspace.com/spaces/456/schema/Static%20Analysis " Static Analysis (issues) ")
24-
21+ [ ![ Space Health] ( https://samples.testspace.com/projects/166/spaces/812/badge )] ( https://samples.testspace.com/projects/166/spaces/812 " Test Cases ")
22+ [ ![ Space Metric] ( https://samples.testspace.com/projects/166/spaces/812/metrics/775/badge )] ( https://samples.testspace.com/spaces/812/schema/Code%20Coverage " Code Coverage (branches) ")
23+ [ ![ Space Metric] ( https://samples.testspace.com/projects/166/spaces/812/metrics/777/badge )] ( https://samples.testspace.com/spaces/812/schema/Code%20Coverage " Code Coverage (methods) ")
24+ [ ![ Space Metric] ( https://samples.testspace.com/projects/166/spaces/812/metrics/778/badge )] ( https://samples.testspace.com/spaces/812/schema/Static%20Analysis " Static Analysis (issues) ")
2525
26- ***
2726
2827***
2928
@@ -35,19 +34,19 @@ Build examples:
3534 mvn cobertura:cobertura -Dcobertura.report.format=xml
3635</pre >
3736
38- Publishing results example:
39-
4037<pre >
41- testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml $TESTSPACE_TOKEN/$BRANCH_NAME
42- </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 >
4341
44- Checkout the [ Space ] ( https://samples.testspace.com/projects/java.testng ) .
42+ Checkout the published [ Test Content ] ( https://samples.testspace.com/projects/testspace-samples: java.testng ) . 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.
4543
4644***
4745
4846To replicate this sample:
49- - Account at www.testspace.com .
50- - CI Environment Variable called ** TESTSPACE_TOKEN** required:
51- - ` TESTSPACE_TOKEN ` =
` [email protected] /my-project` 52- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials ) .
53- - ` my-org-name.testspace.com/my-project ` based on your * organization* (subdomain) and * project* names.
47+ - Setup account at www.testspace.com .
48+ - Create a Environment variable called ` TESTSPACE_TOKEN `
49+ - ` TESTSPACE_TOKEN ` =
` [email protected] ` 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+
0 commit comments