diff --git a/scripts/run_full_test_suite.ps1 b/scripts/run_full_test_suite.ps1 new file mode 100644 index 0000000..1e4cd15 --- /dev/null +++ b/scripts/run_full_test_suite.ps1 @@ -0,0 +1,17 @@ +Write-Output "[PWSH] Deleting compiled extension modules..." +Remove-Item ".\src\dopt_sensor_anomalies\*.pyd" -Force +Write-Output "[PWSH] Running tests..." +pdm run pytest --cov --cov-report=html --no-cov-on-fail + +if ($? -eq $false){ + Write-Output "[PWSH] Exiting script because there were failed tests" + Write-Output "[PWSH] No coverage report was generated" + Exit +} + +Write-Output "[PWSH] Opening coverage report..." +Invoke-Item .\reports\coverage\index.html +Write-Output "[PWSH] Installing extension module..." +pdm install +Write-Output "[PWSH] Running test suite against extension module..." +pdm run pytest .\tests\test_detection.py