tests/PSTS.TestUnits.ps1
if ( $(get-module |Where-Object {$_.Name -eq "PSTS"}) -ne $null) { Remove-Module 'PSTS' -Force } import-module ../PSTS.psd1 -Verbose -force $testData = Get-Content -Path ".\tests.json" | ConvertFrom-Json $coverageFiles = $(Get-ChildItem $testData.testUnits.coverage) | Foreach { $_.FullName } $testFiles = $(Get-ChildItem $testData.testUnits.file) | Foreach { $_.FullName } Invoke-Pester $testFiles -CodeCoverage $coverageFiles -OutputFile "../testResults/RESULTS.xml" -OutputFormat NUnitXml -CodeCoverageOutputFile "../testResults/COVERAGES.xml" -CodeCoverageOutputFileFormat JaCoCo |