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## PHP/PHPUnit sample for demonstrating Testspace
@@ -15,10 +16,10 @@ Using Multiple Online CI Services:
1516***
1617Publishing ** Test Content** using www.testspace.com .
1718
18- [ ![ Space Health] ( https://samples.testspace.com/projects/119 /spaces/441 /badge )] ( https://samples.testspace.com/projects/119 /spaces/441 " Test Cases ")
19- [ ![ Space Metric] ( https://samples.testspace.com/projects/119 /spaces/441 /metrics/267 /badge )] ( https://samples.testspace.com/spaces/441 /schema/Code%20Coverage " Code Coverage (statements ) ")
20- [ ![ Space Metric] ( https://samples.testspace.com/projects/119 /spaces/441 /metrics/266 /badge )] ( https://samples.testspace.com/spaces/441 /schema/Code%20Coverage " Code Coverage (methods ) ")
21- [ ![ Space Metric] ( https://samples.testspace.com/projects/119 /spaces/441 /metrics/268 /badge )] ( https://samples.testspace.com/spaces/441 /schema/Static%20Analysis " Static Analysis (issues) ")
19+ [ ![ Space Health] ( https://samples.testspace.com/projects/163 /spaces/788 /badge )] ( https://samples.testspace.com/projects/163 /spaces/788 " Test Cases ")
20+ [ ![ Space Metric] ( https://samples.testspace.com/projects/163 /spaces/788 /metrics/727 /badge )] ( https://samples.testspace.com/spaces/788 /schema/Code%20Coverage " Code Coverage (methods ) ")
21+ [ ![ Space Metric] ( https://samples.testspace.com/projects/163 /spaces/788 /metrics/728 /badge )] ( https://samples.testspace.com/spaces/788 /schema/Code%20Coverage " Code Coverage (statements ) ")
22+ [ ![ Space Metric] ( https://samples.testspace.com/projects/163 /spaces/788 /metrics/729 /badge )] ( https://samples.testspace.com/spaces/788 /schema/Static%20Analysis " Static Analysis (issues) ")
2223
2324
2425***
@@ -42,21 +43,21 @@ Running Tests with Code Coverage
4243vendor/bin/phpunit tests/unit --log-junit tests-results.xml --coverage-clover coverage.xml
4344</pre >
4445
45- Publishing Results using ** Testspace** : (note, ` .testspace ` contains files to publish)
46+ Pushing Content using ** Testspace client ** :
4647
4748<pre >
4849curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin
49- testspace @.testspace $TESTSPACE_TOKEN/$BRANCH_NAME
50+ testspace @.testspace.txt $TESTSPACE_TOKEN/$GITHUB_ORG:$REPO_NAME/$ BRANCH_NAME#$BUILD_NUMBER
5051</pre >
5152
52-
53- Checkout the [ Space] ( https://samples.testspace.com/projects/php.phpunit ) .
53+ Checkout the published [ Test Content] ( https://samples.testspace.com/projects/testspace-samples:php.phpunit ) . 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.
5454
5555***
5656
5757To replicate this sample:
58- - Account at www.testspace.com .
59- - CI Environment Variable called ** TESTSPACE_TOKEN** required:
60- - ` TESTSPACE_TOKEN ` =
` [email protected] /my-project` 61- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials ) .
62- - ` my-org-name.testspace.com/my-project ` based on your * organization* (subdomain) and * project* names.
58+ - Setup account at www.testspace.com .
59+ - Create a Environment variable called ` TESTSPACE_TOKEN `
60+ - ` TESTSPACE_TOKEN ` =
` [email protected] ` 61+ - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials )
62+ - 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
63+
0 commit comments