Skip to content

Commit

Permalink
Updating the NUnit runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jweber committed May 11, 2016
1 parent cb20870 commit 0973dbf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
14 changes: 8 additions & 6 deletions rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$config = ENV['config'] || 'Debug'
$nuget_api_key = ENV['nuget_api_key']
$teamcity = (not ENV['TEAMCITY_VERSION'].nil?)

task :default => :compile

Expand Down Expand Up @@ -56,11 +57,12 @@

tests.files = FileList["source/#{PROJECT_NAME}.Tests/bin/#{$config}/#{PROJECT_NAME}.Tests.dll"]
tests.exe = nunit_path
tests.add_parameter "/framework=#{CLR_TOOLS_VERSION}"
tests.add_parameter "/noshadow"
tests.add_parameter "/nologo"
tests.add_parameter "/labels"
tests.add_parameter "/xml=#{File.join(ARTIFACTS_PATH, "nunit-test-results.xml")}"
tests.add_parameter "--labels=ALL"
tests.add_parameter "--noresult"

if $teamcity
tests.add_parameter "--teamcity"
end
end

desc 'Cleans build artifacts'
Expand Down Expand Up @@ -142,7 +144,7 @@
end

def nunit_path()
File.join(Dir.glob(File.join('source', 'packages', "nunit.runners.*")).sort.last, "tools", "nunit-console.exe")
File.join(Dir.glob(File.join('source', 'packages', "nunit.consolerunner.*")).sort.last, "tools", "nunit3-console.exe")
end

def nuget_path()
Expand Down
4 changes: 0 additions & 4 deletions source/.nuget/packages.config

This file was deleted.

1 change: 1 addition & 0 deletions source/WcfClientProxyGenerator.Tests/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<packages>
<package id="NSubstitute" version="1.10.0.0" targetFramework="net45" />
<package id="NUnit" version="3.2.1" targetFramework="net45" />
<package id="NUnit.ConsoleRunner" version="3.2.1" targetFramework="net45" />
</packages>
9 changes: 3 additions & 6 deletions source/WcfClientProxyGenerator.sln
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WcfClientProxyGenerator", "WcfClientProxyGenerator\WcfClientProxyGenerator.csproj", "{56614D90-9EEA-4908-8BEB-7CD6E35BFCB0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WcfClientProxyGenerator.Tests", "WcfClientProxyGenerator.Tests\WcfClientProxyGenerator.Tests.csproj", "{C8B3B23C-F719-4F31-B6B7-8F02B3A817FA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{EDEEE88F-2834-4EB7-8C45-E66602669B5E}"
ProjectSection(SolutionItems) = preProject
.nuget\packages.config = .nuget\packages.config
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down

0 comments on commit 0973dbf

Please sign in to comment.