-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.ps1
25 lines (15 loc) · 793 Bytes
/
Test.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
param (
[string]$Configuration = 'Debug'
)
$ErrorActionPreference = "Stop"
$Here = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$NuGet = Join-Path $Here ".nuget\nuget.exe"
$NUnitVersion = "3.6.1"
$NUnit = Join-Path $Here "packages\NUnit.ConsoleRunner.$NUnitVersion\tools\nunit3-console.exe"
& $NuGet install NUnit.Console -version $NUnitVersion -OutputDirectory "$Here\packages"
# Get any assembly matching "CertiPay.*.Tests.dll" for now
$TestProjects = Get-ChildItem -Path "$Here\**\bin\$Configuration" -Recurse -Include "CertiPay.*.Tests.dll"
# Run the unit tests in all of the test projects
# The task is set to run everything except tests marked [Integration] or [Category("Integration")]
& $NUnit @TestProjects --where "Category != Integration"
EXIT $LASTEXITCODE