nuget runner is downloaded using nuget.

This commit is contained in:
kay.one 2013-08-18 16:24:01 -07:00
commit 1373d34013
13 changed files with 9 additions and 124 deletions

View file

@ -1,11 +1,6 @@
param (
[switch]$runTests = $false
)
$msBuild = 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe'
$outputFolder = '.\_output'
$testSearchPattern = '*.Test\bin\x86\Release'
$testPackageFolder = '.\_tests\'
Function Build()
{
@ -61,6 +56,10 @@ Function PackageTests()
{
Write-Host Packaging Tests
$testPackageFolder = '.\_tests\'
.\.nuget\NuGet.exe install NUnit.Runners -Version 2.6.1 -Output $testPackageFolder
if(Test-Path $testPackageFolder)
{
Remove-Item -Recurse -Force $testPackageFolder -ErrorAction Continue
@ -80,18 +79,6 @@ Function PackageTests()
get-childitem $testPackageFolder -File -Filter *log.config | foreach ($_) {remove-item $_.fullname}
}
Function Nunit()
{
$testFiles
get-childitem $testPackageFolder -File -Filter *test.dll | foreach ($_) {
$testFiles = $testFiles + $_.FullName + " "
}
$nunitExe = '.\Libraries\nunit\nunit-console-x86.exe ' + $testFiles + ' /process:multiple /noxml'
Invoke-Expression $nunitExe
CheckExitCode
}
Function RunGrunt()
{
@ -114,9 +101,4 @@ Function CheckExitCode()
Build
RunGrunt
PackageTests
if($runTests)
{
Nunit
}
PackageTests