diff --git a/ExpectedExceptionExample/ExpectedExceptionExample.csproj b/ExpectedExceptionExample/ExpectedExceptionExample.csproj index 516fb37..37d12e5 100644 --- a/ExpectedExceptionExample/ExpectedExceptionExample.csproj +++ b/ExpectedExceptionExample/ExpectedExceptionExample.csproj @@ -1,4 +1,4 @@ - + Local @@ -70,8 +70,13 @@ AllRules.ruleset - - packages\NUnit.3.0.0\lib\net20\nunit.framework.dll + + packages\NUnit.3.4.1\lib\net20\nunit.framework.dll + True + + + packages\NUnit.3.4.1\lib\net20\NUnit.System.Linq.dll + True System diff --git a/ExpectedExceptionExample/packages.config b/ExpectedExceptionExample/packages.config index ac308b1..4d19bfb 100644 --- a/ExpectedExceptionExample/packages.config +++ b/ExpectedExceptionExample/packages.config @@ -1,4 +1,5 @@ - + - - \ No newline at end of file + + + diff --git a/README.md b/README.md index 5501ef2..eeab481 100644 --- a/README.md +++ b/README.md @@ -7,17 +7,9 @@ This sample demonstrates techniques for using Testspace with C# code and the [NUnit](http://nunit.org/) test framework, along with the [OpenCover](https://github.com/OpenCover/opencover) coverage tool and [Visual Studio's](https://msdn.microsoft.com/en-us/library/dd264939.aspx) static analysis tool using [NUnit's C# examples](https://github.com/nunit/nunit-csharp-samples). *** -Build using AppVeyor's Online CI: +Example branching only: **topic** -[![Build status](https://ci.appveyor.com/api/projects/status/1n2pyp8otedkeebq?svg=true)](https://ci.appveyor.com/project/munderseth/csharp-nunit) - -*** -Publishing **Test Content** using www.testspace.com. - -[![Space Health](https://samples.testspace.com/projects/168/spaces/822/badge)](https://samples.testspace.com/projects/168/spaces/822 "Test Cases") -[![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)") -[![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)") -[![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)") +* Reference article: [git branching workflow](https://git-scm.com/book/en/v1/Git-Branching-Branching-Workflows) *** @@ -39,15 +31,14 @@ Pushing Content using **Testspace client**:
 curl -fsS -o testspace-windows.zip https://testspace-client.s3.amazonaws.com/testspace-windows.zip
 7z x -y .\testspace-windows.zip
-testspace @.testspace.txt %TESTSPACE_TOKEN%/testspace-samples:csharp.nunit/%APPVEYOR_REPO_BRANCH%#appveyor.build.%APPVEYOR_BUILD_NUMBER%
+testspace analysis.xml [Tests]TestResult.xml coverage.xml %TESTSPACE_TOKEN%/%APPVEYOR_REPO_NAME:/=:%/%APPVEYOR_REPO_BRANCH%#appveyor.build.%APPVEYOR_BUILD_NUMBER%
 
-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. +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. -To replicate this sample: +To replicate this sample: - Setup account at www.testspace.com. - Create a Environment variable called `TESTSPACE_TOKEN` - `TESTSPACE_TOKEN` = `credentials@Your-Org-Name.testspace.com` - `credentials` set to `username:password` or your [access token](http://help.testspace.com/reference:client-reference#login-credentials) - 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 - \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 847493d..53b6ee4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,12 +3,12 @@ configuration: Debug build_script: - nuget restore money/cs-money.sln - + test_script: - msbuild money/cs-money.csproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:runCodeAnalysis=true /p:codeanalysislogfile=..\analysis.xml - - .\money\packages\OpenCover.4.6.519\tools\OpenCover.Console -target:".\money\packages\NUnit.ConsoleRunner.3.2.1\tools\nunit3-console.exe" -targetargs:"money\bin\Debug\cs-money.dll" -output:"coverage.xml" -filter:"+[*]* -[*]*MoneyTest*" -register:user + - .\money\packages\OpenCover.4.6.519\tools\OpenCover.Console -target:".\money\packages\NUnit.ConsoleRunner.3.4.1\tools\nunit3-console.exe" -targetargs:"money\bin\Debug\cs-money.dll" -output:"coverage.xml" -filter:"+[*]* -[*]*MoneyTest*" -register:user after_test: - - curl -fsS -o testspace-windows.zip https://testspace-client.s3.amazonaws.com/testspace-windows.zip + - curl -fsS -o testspace-windows.zip https://testspace-client.s3.amazonaws.com/testspace-windows.zip - 7z x -y testspace-windows.zip - - testspace @.testspace.txt %TESTSPACE_TOKEN%/testspace-samples:csharp.nunit/%APPVEYOR_REPO_BRANCH%#appveyor.build.%APPVEYOR_BUILD_NUMBER% \ No newline at end of file + - testspace analysis.xml [Tests]TestResult.xml coverage.xml %TESTSPACE_TOKEN%/%APPVEYOR_REPO_NAME:/=:%/%APPVEYOR_REPO_BRANCH%#appveyor.build.%APPVEYOR_BUILD_NUMBER% diff --git a/money/cs-money.csproj b/money/cs-money.csproj index c39710b..b09af63 100644 --- a/money/cs-money.csproj +++ b/money/cs-money.csproj @@ -70,8 +70,12 @@ AllRules.ruleset - - packages\NUnit.3.2.1\lib\net20\nunit.framework.dll + + packages\NUnit.3.4.1\lib\net20\nunit.framework.dll + True + + + packages\NUnit.3.4.1\lib\net20\NUnit.System.Linq.dll True diff --git a/money/packages.config b/money/packages.config index b36fe35..75e8e3d 100644 --- a/money/packages.config +++ b/money/packages.config @@ -1,11 +1,6 @@ - - - - - - - + + - \ No newline at end of file + diff --git a/syntax/cs-syntax.csproj b/syntax/cs-syntax.csproj index e415acb..648f12b 100644 --- a/syntax/cs-syntax.csproj +++ b/syntax/cs-syntax.csproj @@ -1,4 +1,4 @@ - + Local @@ -70,8 +70,13 @@ AllRules.ruleset - - packages\NUnit.3.0.0\lib\net20\nunit.framework.dll + + packages\NUnit.3.4.1\lib\net20\nunit.framework.dll + True + + + packages\NUnit.3.4.1\lib\net20\NUnit.System.Linq.dll + True System diff --git a/syntax/packages.config b/syntax/packages.config index ee52ea5..4d19bfb 100644 --- a/syntax/packages.config +++ b/syntax/packages.config @@ -1,4 +1,5 @@ - + - + +