Skip to content

Commit

Permalink
build: add -DisableCapture switch to Windows test-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus committed Oct 8, 2024
1 parent 65bfb62 commit da836e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/run_tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ param (
[switch]$Clean = $false,
[string]$Keyword = "",
[int]$Parallelism = 1,
[switch]$WithoutCrashpadWer = $false
[switch]$WithoutCrashpadWer = $false,
[switch]$DisableCapture = $false
)

$update_test_discovery = Join-Path -Path $PSScriptRoot -ChildPath "update_test_discovery.ps1"
Expand All @@ -18,6 +19,10 @@ if ($Clean -or -not (Test-Path .\.venv))

$pytestCommand = ".\.venv\Scripts\pytest.exe .\tests\ --verbose"

if ($DisableCapture) {
$pytestCommand += " --capture=no"
}

if ($Parallelism -gt 1)
{
$pytestCommand += " -n $Parallelism"
Expand Down

0 comments on commit da836e5

Please sign in to comment.