voicemeeter/tests/pre-commit.ps1

12 lines
279 B
PowerShell
Raw Normal View History

2022-06-25 01:05:56 +01:00
Function RunTests {
2022-06-25 01:16:48 +01:00
$run_ext_tests = "go clean -testcache; go test -v .\tests\"
$run_int_tests = "go clean -testcache; go test -v .\voicemeeter\"
2022-06-25 01:05:56 +01:00
2022-06-25 01:16:48 +01:00
Invoke-Expression $run_ext_tests
Invoke-Expression $run_int_tests
2022-06-25 01:05:56 +01:00
}
if ($MyInvocation.InvocationName -ne ".") {
RunTests
}