<# .SYNOPSIS The purpose of this script is to check the Release build for any obvious flaws without running all unit tests. #> $root = Join-Path $PSScriptRoot ..\ $dsInternalsModulePath = Join-Path $root Build\bin\Release\DSInternals $pesterModulePath = Join-Path $root Src\packages\Pester.4.4.1\tools\Pester.psd1 $testsPath = Join-Path $root Src\DSInternals.PowerShell\Tests\ $resultsPath = Join-Path $root 'TestResults' # Create output dir if it does not exist mkdir $resultsPath -Force | Out-Null Import-Module $pesterModulePath Invoke-Pester -OutputFile $resultsPath\SmokeTests.xml -OutputFormat NUnitXml -Script @{ Path = "$testsPath\*.Smoke.Tests.ps1"; Parameters = @{ ModulePath = $dsInternalsModulePath } }