1- [ ![ Testspace] ( http ://www.testspace.com/img/Testspace.png)] ( http://www.testspace.com )
1+ [ ![ Testspace] ( https ://www.testspace.com/img/Testspace.png)] ( http://www.testspace.com )
22
33***
44
55## Java/TestNG sample for demonstrating Testspace
66
77Sample demonstrates techniques for using Testspace with Java code and the [ TestNG] ( http://testng.org/ ) .
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: java .testng] ( https://samples.testspace.com/projects/testspace-samples:java.testng )
11+ * Refer to our [ Getting Started] ( https://help.testspace.com/getting-started ) help articles for more information
812
913***
1014
@@ -18,14 +22,20 @@ Using Multiple Online CI Services:
1822***
1923Publishing ** Test Content** using www.testspace.com .
2024
21- [ ![ Space Health] ( https://samples.testspace.com/spaces/812/badge )] ( https://samples.testspace.com/spaces/812 " Test Cases ")
22- [ ![ Space Metric] ( https://samples.testspace.com/spaces/812/metrics/775/badge )] ( https://samples.testspace.com/spaces/812/schema/Code%20Coverage " Code Coverage (branches) ")
23- [ ![ Space Metric] ( https://samples.testspace.com/spaces/812/metrics/777/badge )] ( https://samples.testspace.com/spaces/812/schema/Code%20Coverage " Code Coverage (methods) ")
24- [ ![ Space Metric] ( https://samples.testspace.com/spaces/812/metrics/778/badge )] ( https://samples.testspace.com/spaces/812/schema/Static%20Analysis " Static Analysis (issues) ")
25-
25+ [ ![ Space Health] ( https://samples.testspace.com/spaces/812/badge?token=c3ed21215685a52ea7921f37e16ec0fe9201a881 )] ( https://samples.testspace.com/spaces/812 " Test Cases ")
26+ [ ![ Space Metric] ( https://samples.testspace.com/spaces/812/metrics/776/badge?token=3705d870c50b78076485ee8781cf4f11aa6f487b )] ( https://samples.testspace.com/spaces/812/schema/Code%20Coverage " Code Coverage (lines) ")
27+ [ ![ Space Metric] ( https://samples.testspace.com/spaces/812/metrics/778/badge?token=5881f7fbb15146585b0139c783f78388effd44bf )] ( https://samples.testspace.com/spaces/812/schema/Static%20Analysis " Static Analysis (issues) ")
2628
2729***
2830
31+ Download and configure the Testspace client
32+
33+ <pre >
34+ mkdir -p $HOME/bin
35+ curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin
36+ testspace config url samples.testspace.com
37+ </pre >
38+
2939Build examples:
3040
3141<pre >
@@ -34,21 +44,8 @@ Build examples:
3444 mvn cobertura:cobertura -Dcobertura.report.format=xml
3545</pre >
3646
37- Push Content using ** Testspace client** :
47+ Push Content using Testspace client
3848
3949<pre >
40- curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
41- testspace @.testspace.txt $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$BRANCH_NAME#$BUILD_NUMBER
42- </pre >
43-
44- 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.
45-
46- ***
47-
48- To replicate this sample:
49- - Setup account at www.testspace.com .
50- - Create a Environment variable called ` TESTSPACE_TOKEN `
51- - ` TESTSPACE_TOKEN ` =
` [email protected] ` 52- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials )
53- - 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
54-
50+ testspace target/pmd.xml [Tests]target/surefire-reports/TEST-TestSuite.xml target/site/cobertura/coverage.xml
51+ </pre >
0 commit comments