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 -----"
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
$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 }
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
# run integration tests
|
2022-09-27 10:04:21 +03:00
|
|
|
cd $project_root_path\integration
|
|
|
|
python integration.py
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
cd $actual_dir
|
2023-04-05 12:07:50 +03:00
|
|
|
|