Fixed unit testissue with build ssytem
This commit is contained in:
@@ -33,7 +33,7 @@ Task Init {
|
||||
Task UnitTests -Depends Init {
|
||||
$lines
|
||||
'Running quick unit tests to fail early if there is an error'
|
||||
$TestResults = Invoke-Pester -Path $ProjectRoot\Tests\*unit* -PassThru -Tag Build -Show Failed
|
||||
$TestResults = Invoke-Pester -Path $ProjectRoot\Tests\*unit* -PassThru -Tag Build
|
||||
|
||||
if($TestResults.FailedCount -gt 0)
|
||||
{
|
||||
@@ -47,7 +47,7 @@ Task Test -Depends UnitTests {
|
||||
"`n`tSTATUS: Testing with PowerShell $PSVersion"
|
||||
|
||||
# Gather test results. Store them in a variable and file
|
||||
$TestResults = Invoke-Pester -Path $ProjectRoot\Tests -PassThru -OutputFormat NUnitXml -OutputFile "$ProjectRoot\$TestFile" -Tag Build -Show Failed
|
||||
$TestResults = Invoke-Pester -Path $ProjectRoot\Tests -PassThru -OutputFormat NUnitXml -OutputFile "$ProjectRoot\$TestFile" -Tag Build
|
||||
|
||||
# In Appveyor? Upload our tests! #Abstract this into a function?
|
||||
If($ENV:BHBuildSystem -eq 'AppVeyor')
|
||||
|
||||
Reference in New Issue
Block a user