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## Java/JUnit sample for demonstrating Testspace
66
77Sample demonstrates techniques for using Testspace with Java code and the [ JUnit] ( http://junit.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 .junit] ( https://samples.testspace.com/projects/testspace-samples:java.junit )
11+ * Refer to our [ Getting Started] ( https://help.testspace.com/getting-started ) help articles for more information
812
913***
1014Using Multiple Online CI Services:
@@ -16,14 +20,21 @@ Using Multiple Online CI Services:
1620***
1721Publishing ** Test Content** using www.testspace.com .
1822
19- [ ![ Space Health] ( https://samples.testspace.com/spaces/816/badge )] ( https://samples.testspace.com/spaces/816 " Test Cases ")
20- [ ![ Space Metric] ( https://samples.testspace.com/spaces/816/metrics/789/badge )] ( https://samples.testspace.com/spaces/816/schema/Code%20Coverage " Code Coverage (branches) ")
21- [ ![ Space Metric] ( https://samples.testspace.com/spaces/816/metrics/791/badge )] ( https://samples.testspace.com/spaces/816/schema/Code%20Coverage " Code Coverage (methods) ")
22- [ ![ Space Metric] ( https://samples.testspace.com/spaces/816/metrics/792/badge )] ( https://samples.testspace.com/spaces/816/schema/Static%20Analysis " Static Analysis (issues) ")
23-
23+ [ ![ Space Health] ( https://samples.testspace.com/spaces/816/badge?token=fcc8e5d8cc3c4be1e51436d66b221b28ca53cfed )] ( https://samples.testspace.com/spaces/816 " Test Cases ")
24+ [ ![ Space Metric] ( https://samples.testspace.com/spaces/816/metrics/790/badge?token=fbb017e5c373db88c2c1abc34a7f399166c7f8dc )] ( https://samples.testspace.com/spaces/816/schema/Code%20Coverage " Code Coverage (lines) ")
25+ [ ![ Space Metric] ( https://samples.testspace.com/spaces/816/metrics/792/badge?token=ef2d78a844e4c40517f6209d0db0c179db05473c )] ( https://samples.testspace.com/spaces/816/schema/Static%20Analysis " Static Analysis (issues) ")
2426
2527***
2628
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 >
36+
37+
2738Build examples:
2839
2940<pre >
@@ -32,22 +43,8 @@ Build examples:
3243 mvn cobertura:cobertura -Dcobertura.report.format=xml
3344</pre >
3445
35- Push Content using ** Testspace client** :
46+ Push Content using Testspace client
3647
3748<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 >
41-
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.
43-
44- ***
45-
46- To replicate this sample:
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-
53-
49+ testspace target/pmd.xml [Tests]target/surefire-reports/TEST*.xml target/site/cobertura/coverage.xml
50+ </pre >
0 commit comments