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## JavaScript/Mocha sample for demonstrating Testspace based on the [ nodejs-tdd-boilerplate] ( https://github.com/BryanDonovan/nodejs-tdd-boilerplate )
@@ -17,10 +18,10 @@ Using Multiple Online CI Services:
1718***
1819Publising ** Test Content** using www.testspace.com
1920
20- [ ![ Space Health] ( https://samples.testspace.com/projects/117 /spaces/468 /badge )] ( https://samples.testspace.com/projects/117 /spaces/468 " Test Cases ")
21- [ ![ Space Metric] ( https://samples.testspace.com/projects/117 /spaces/468 /metrics/340 /badge )] ( https://samples.testspace.com/spaces/468 /schema/Code%20Coverage " Code Coverage (branches) ")
22- [ ![ Space Metric] ( https://samples.testspace.com/projects/117 /spaces/468 /metrics/342 /badge )] ( https://samples.testspace.com/spaces/468 /schema/Code%20Coverage " Code Coverage (methods) ")
23- [ ![ Space Metric] ( https://samples.testspace.com/projects/117 /spaces/468 /metrics/343 /badge )] ( https://samples.testspace.com/spaces/468 /schema/Static%20Analysis " Static Analysis (issues) ")
21+ [ ![ Space Health] ( https://samples.testspace.com/projects/164 /spaces/799 /badge )] ( https://samples.testspace.com/projects/164 /spaces/799 " Test Cases ")
22+ [ ![ Space Metric] ( https://samples.testspace.com/projects/164 /spaces/799 /metrics/743 /badge )] ( https://samples.testspace.com/spaces/799 /schema/Code%20Coverage " Code Coverage (branches) ")
23+ [ ![ Space Metric] ( https://samples.testspace.com/projects/164 /spaces/799 /metrics/745 /badge )] ( https://samples.testspace.com/spaces/799 /schema/Code%20Coverage " Code Coverage (methods) ")
24+ [ ![ Space Metric] ( https://samples.testspace.com/projects/164 /spaces/799 /metrics/746 /badge )] ( https://samples.testspace.com/spaces/799 /schema/Static%20Analysis " Static Analysis (issues) ")
2425
2526***
2627
@@ -31,19 +32,19 @@ npm install
3132make lint test
3233</pre >
3334
34- Publishing results example:
35-
3635<pre >
3736curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
38- testspace checkstyle.xml [Tests]xunit.xml{test} coverage/cobertura-coverage.xm $TESTSPACE_TOKEN/$BRANCH_NAME
37+ testspace @.testspace.txt $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$ BRANCH_NAME#$BUILD_NUMBER
3938</pre >
4039
41- Checkout the [ Space ] ( http ://samples.testspace.com/projects/javascript.mocha) .
40+ Checkout the published [ Test Content ] ( https ://samples.testspace.com/projects/testspace-samples: javascript.mocha) . 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 .
4241
4342***
43+
4444To replicate this sample:
45- - Account at www.testspace.com .
46- - CI Environment Variable called ** TESTSPACE_TOKEN** required:
47- - ` TESTSPACE_TOKEN ` =
` [email protected] /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.
45+ - Setup account at www.testspace.com .
46+ - Create a Environment variable called ` TESTSPACE_TOKEN `
47+ - ` TESTSPACE_TOKEN ` =
` [email protected] ` 48+ - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials )
49+ - 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
50+
0 commit comments