hurl/bin/test/test_integ.ps1

24 lines
522 B
PowerShell
Raw Normal View History

2022-12-28 12:20:27 +03:00
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
2023-04-05 12:07:50 +03:00
write-host -foregroundcolor Cyan "----- integration tests -----"
$actual_dir=(Get-Location).Path
2022-09-27 10:04:21 +03:00
$project_root_path=(Resolve-Path -LiteralPath $PSScriptRoot\..\..).path
# hurl infos
(Get-Command hurl).Path
(Get-Command hurlfmt).Path
hurl --version
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }
2022-09-27 10:04:21 +03:00
hurlfmt --version
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }
# run integration tests
cd $project_root_path\integration\hurl
2022-09-27 10:04:21 +03:00
python integration.py
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }
cd $actual_dir
2023-04-05 12:07:50 +03:00