refactor: make this a valid nuget package for Powershell gallery

feat: add build environment scripts
This commit is contained in:
Rodweil, Theodor 2023-08-07 20:56:50 +02:00
parent 69c2684ee7
commit 46b1b7c83f
No known key found for this signature in database
GPG key ID: F8BC1B0EB1F9CCF5
38 changed files with 200 additions and 42 deletions

36
scripts/test.ps1 Executable file
View file

@ -0,0 +1,36 @@
#! /usr/bin/pwsh
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$ErrorView = "NormalView"
Import-Module Pester -ErrorAction Stop -Force
Invoke-Pester -Configuration @{
'Debug' = @{
'ShowFullErrors' = $false
'ShowNavigationMarkers' = $false
'WriteDebugMessagesFrom' = 'CodeCoverage'
}
'Output' = @{
'Verbosity' = 'Normal'
}
'Run' = @{
'Path' = Join-Path $PSScriptRoot '..' 'tests' '*'
'Exit' = $true
'PassThru' = $true
}
'CodeCoverage' = @{
'Enabled' = $true
'Path' = Join-Path $PSScriptRoot '..' 'src' '*'
'OutputPath' = Join-Path $PSScriptRoot '..' 'test-reports' `
'coverage.xml'
}
'TestResult' = @{
'Enabled' = $true
'OutputPath' = Join-Path $PSScriptRoot '..' 'test-reports' 'testResults.xml'
}
}