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## C#/NUnit sample for demonstrating Testspace
@@ -13,10 +14,10 @@ Build using AppVeyor's Online CI:
1314***
1415Publishing ** Test Content** using www.testspace.com .
1516
16- [ ![ Space Health] ( https://samples.testspace.com/projects/113 /spaces/428 /badge )] ( https://samples.testspace.com/projects/113 /spaces/428 " Test Cases ")
17- [ ![ Space Metric] ( https://samples.testspace.com/projects/113 /spaces/428 /metrics/228 /badge )] ( https://samples.testspace.com/spaces/428 /schema/Code%20Coverage " Code Coverage (branches) ")
18- [ ![ Space Metric] ( https://samples.testspace.com/projects/113 /spaces/428 /metrics/229 /badge )] ( https://samples.testspace.com/spaces/428 /schema/Code%20Coverage " Code Coverage (methods) ")
19- [ ![ Space Metric] ( https://samples.testspace.com/projects/113 /spaces/428 /metrics/231 /badge )] ( https://samples.testspace.com/spaces/428 /schema/Static%20Analysis " Static Analysis (issues) ")
17+ [ ![ Space Health] ( https://samples.testspace.com/projects/168 /spaces/822 /badge )] ( https://samples.testspace.com/projects/168 /spaces/822 " Test Cases ")
18+ [ ![ Space Metric] ( https://samples.testspace.com/projects/168 /spaces/822 /metrics/805 /badge )] ( https://samples.testspace.com/spaces/822 /schema/Code%20Coverage " Code Coverage (branches) ")
19+ [ ![ Space Metric] ( https://samples.testspace.com/projects/168 /spaces/822 /metrics/806 /badge )] ( https://samples.testspace.com/spaces/822 /schema/Code%20Coverage " Code Coverage (methods) ")
20+ [ ![ Space Metric] ( https://samples.testspace.com/projects/168 /spaces/822 /metrics/808 /badge )] ( https://samples.testspace.com/spaces/822 /schema/Static%20Analysis " Static Analysis (issues) ")
2021
2122***
2223
@@ -33,19 +34,20 @@ Running tests with code coverage:
3334OpenCover.Console -target:"nunit3-console.exe" -targetargs:"cs-money.dll" -output:"coverage.xml" -filter:"+[*]* -[*]*MoneyTest*" -register:user
3435</pre >
3536
36- Publishing Test Content using ** Testspace** :
37+ Pushing Content using ** Testspace client ** :
3738
3839<pre >
3940curl -fsS -o testspace-windows.zip https://testspace-client.s3.amazonaws.com/testspace-windows.zip
40417z x -y .\testspace-windows.zip
41- testspace analysis.xml [Tests]TestResult.xml coverage.xml "master"
42+ testspace @.testspace.txt %TESTSPACE_TOKEN%/testspace-samples:csharp.nunit/%APPVEYOR_REPO_BRANCH%#appveyor.build.%APPVEYOR_BUILD_NUMBER%
4243</pre >
4344
44- Checkout the [ Testspace Project ] ( https://samples.testspace.com/projects/csharp.nunit ) .
45+ Checkout the published [ Testspace Content ] ( https://samples.testspace.com/projects/csharp.nunit ) . 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.
4546
46- To fork this example using AppVeyor requires:
47- - Account at www.testspace.com .
48- - AppVeyor CI Environment Variable called ** TESTSPACE_TOKEN** required:
49- - ` TESTSPACE_TOKEN ` = ` credentials@my-org-name.testspace.com/my-project `
50- - ` credentials ` set to ` username:password ` or your [ access token] ( http://help.testspace.com/reference:client-reference#login-credentials ) .
51- - `my-org-name.testspace.com/my-project` based on your *organization* (subdomain) and *project* names.
47+ To replicate this sample:
48+ - Setup account at www.testspace.com .
49+ - Create a Environment variable called ` TESTSPACE_TOKEN `
50+ - ` TESTSPACE_TOKEN ` = ` credentials@Your-Org-Name.testspace.com `
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