commit4
This commit is contained in:
@@ -104,6 +104,11 @@ switch ($Action) {
|
||||
'composer' { & $sgfPhp $sgfComposer @ToolArguments; if ($LASTEXITCODE) { throw 'Composer command failed.' } }
|
||||
'npm' { & $sgfNode $sgfNpmCli @ToolArguments; if ($LASTEXITCODE) { throw 'npm command failed.' } }
|
||||
'test' {
|
||||
$demoManifest = Join-Path $sgfData 'secrets\browser-fixture.json'
|
||||
if (Test-Path -LiteralPath $demoManifest) {
|
||||
$demoFixture = Get-Content -LiteralPath $demoManifest -Raw | ConvertFrom-Json
|
||||
if ($demoFixture.product_demo) { throw 'Integrated team demo preserved in sgf_tempo_test. Do not reset it for regression tests; use a separate test environment.' }
|
||||
}
|
||||
if (Test-Path -LiteralPath "$sgfRun\browser-proof.json") { throw 'Stop the browser proof before tests reset sgf_tempo_test.' }
|
||||
Start-SgfDatabase
|
||||
& $sgfPhp 'vendor/phpunit/phpunit/phpunit' @ToolArguments
|
||||
|
||||
Reference in New Issue
Block a user