add integration test in win contrib docs

This commit is contained in:
lepapareil 2021-02-20 19:53:11 +01:00
parent 99b811fa70
commit e21bbea974
2 changed files with 14 additions and 2 deletions

View File

@ -76,6 +76,13 @@ cd c:\hurl\integration
start /B server.py
```
launch the ssl server
```cmd
cd c:\hurl\integration
start /B ssl/server.py
```
launch hurl unit tests
```cmd
@ -85,8 +92,9 @@ cargo test
launch hurl integration tests
```
coming soon ... ;)
```cmd
cd c:\hurl\integration
./integration.py
```
## Generate version.txt file

View File

@ -58,6 +58,10 @@ New-Item -ItemType "Directory" -Path "c:\hurl\target" -Name "win-package"
Get-ChildItem -Path "c:\hurl\target\release" -Recurse -Include *.dll -File | Copy-Item -Destination "c:\hurl\target\win-package"
Get-ChildItem -Path "c:\hurl\target\release" -Recurse -Include hurl*.exe -File | Copy-Item -Destination "c:\hurl\target\win-package"
((c:\hurl\target\win-package\hurl.exe --version) -Split " ")[1] > c:\hurl\target\win-package\version.txt
$oldpath = Get-ItemProperty -Path HKCU:\Environment -Name Path
$newpath = $oldpath.Path += ";c:\hurl\target\win-package"
Set-ItemProperty -Path HKCU:\Environment -Name Path -Value $newpath
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
```
## Test your app