Skip to content

Commit 43519b9

Browse files
committed
using connected project now
1 parent ca6c81c commit 43519b9

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

.testspace.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
analysis.xml
2+
[Tests]TestResult.xml
3+
coverage.xml

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
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
***
1415
Publishing **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:
3334
OpenCover.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>
3940
curl -fsS -o testspace-windows.zip https://testspace-client.s3.amazonaws.com/testspace-windows.zip
4041
7z 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+

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ test_script:
1111
after_test:
1212
- curl -fsS -o testspace-windows.zip https://testspace-client.s3.amazonaws.com/testspace-windows.zip
1313
- 7z x -y testspace-windows.zip
14-
- testspace analysis.xml [Tests]TestResult.xml coverage.xml %TESTSPACE_TOKEN%/%APPVEYOR_REPO_BRANCH%#appveyor.build.%APPVEYOR_BUILD_NUMBER%
14+
- testspace @.testspace.txt %TESTSPACE_TOKEN%/%APPVEYOR_REPO_NAME:/=:%/%APPVEYOR_REPO_BRANCH%#appveyor.build.%APPVEYOR_BUILD_NUMBER%

desktopbuild.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ curl -fsS -o testspace-windows.zip https://testspace-client.s3.amazonaws.com/tes
1010
7z x -y .\testspace-windows.zip
1111
del testspace-windows.zip
1212

13-
testspace publish analysis.xml [Tests]TestResult.xml coverage.xml "master.desktop"
13+
for /f %%i in ('git symbolic-ref --short HEAD') do set BRANCH_NAME=%%i
14+
testspace @.testspace.txt %TESTSPACE_TOKEN%/testspace-samples:csharp.nunit/%BRANCH_NAME%#desktop.Build

0 commit comments

Comments
 (0)