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/Jasmine sample for demonstrating Testspace based on the [ javascript-algorithms repo] ( https://github.com/mgechev/javascript-algorithms )
@@ -15,10 +16,12 @@ Using Multiple Online CI Services:
1516***
1617Publising ** Test Content** using www.testspace.com
1718
18- [ ![ Space Health] ( https://samples.testspace.com/projects/114/spaces/431/badge )] ( https://samples.testspace.com/projects/114/spaces/431 " Test Cases ")
19- [ ![ Space Metric] ( https://samples.testspace.com/projects/114/spaces/431/metrics/238/badge )] ( https://samples.testspace.com/spaces/431/schema/Code%20Coverage " Code Coverage (branches) ")
20- [ ![ Space Metric] ( https://samples.testspace.com/projects/114/spaces/431/metrics/239/badge )] ( https://samples.testspace.com/spaces/431/schema/Code%20Coverage " Code Coverage (methods) ")
21- [ ![ Space Metric] ( https://samples.testspace.com/projects/114/spaces/431/metrics/241/badge )] ( https://samples.testspace.com/spaces/431/schema/Static%20Analysis " Static Analysis (issues) ")
19+ [ ![ Space Health] ( https://samples.testspace.com/projects/165/spaces/804/badge )] ( https://samples.testspace.com/projects/165/spaces/804 " Test Cases ")
20+ [ ![ Space Metric] ( https://samples.testspace.com/projects/165/spaces/804/metrics/755/badge )] ( https://samples.testspace.com/spaces/804/schema/Code%20Coverage " Code Coverage (branches) ")
21+ [ ![ Space Metric] ( https://samples.testspace.com/projects/165/spaces/804/metrics/756/badge )] ( https://samples.testspace.com/spaces/804/schema/Code%20Coverage " Code Coverage (methods) ")
22+ [ ![ Space Metric] ( https://samples.testspace.com/projects/165/spaces/804/metrics/758/badge )] ( https://samples.testspace.com/spaces/804/schema/Static%20Analysis " Static Analysis (issues) ")
23+
24+
2225
2326***
2427
@@ -30,19 +33,21 @@ npm install
3033gulp build
3134</pre >
3235
33- Publishing results example :
36+ Push Content using ** Testspace client ** :
3437
3538<pre >
3639curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
37- CI_REPORTS=$PWD/test/reports testspace @.testspace $TESTSPACE_TOKEN/$BRANCH_NAME
40+ testspace @.testspace.txt $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$ BRANCH_NAME#$BUILD_NUMBER
3841</pre >
3942
40- Checkout the [ Space ] ( http ://samples.testspace.com/projects/javascript.jasmine ) .
43+ Checkout the published [ Test Content ] ( https ://samples.testspace.com/projects/testspace-samples:python.unittest ) . 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 .
4144
4245***
46+
4347To replicate this sample:
44- - Account at www.testspace.com .
45- - CI Environment Variable called ** TESTSPACE_TOKEN** required:
46- - ` TESTSPACE_TOKEN ` =
` [email protected] /my-project` 47- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials ) .
48- - ` my-org-name.testspace.com/my-project ` based on your * organization* (subdomain) and * project* names.
48+ - Setup account at www.testspace.com .
49+ - Create a Environment variable called ` TESTSPACE_TOKEN `
50+ - ` TESTSPACE_TOKEN ` =
` [email protected] ` 51+ - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials )
52+ - 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
53+
0 commit comments