mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-10-26 08:18:26 +03:00
Add explicit assert test
This commit is contained in:
parent
75042e210e
commit
defc3d1cf1
@ -6,3 +6,13 @@
|
||||
[1;34m |[0m[1;31m ^^^ [0m[1;31mactual value is <404>[0m
|
||||
[1;34m |[0m
|
||||
|
||||
[1;31merror[0m: [1mAssert failure[0m
|
||||
[1;34m-->[0m tests_failed/color.hurl:7:0
|
||||
[1;34m |[0m
|
||||
[1;34m |[0m [90mGET http://localhost:8000/undefined[0m
|
||||
[1;34m |[0m[90m ...[0m
|
||||
[1;34m 7 |[0m status == 200
|
||||
[1;34m |[0m[1;31m[0m[1;31m actual: int <404>[0m
|
||||
[1;34m |[0m[1;31m[0m[1;31m expected: int <200>[0m
|
||||
[1;34m |[0m
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
GET http://localhost:8000/undefined
|
||||
HTTP 200
|
||||
|
||||
|
||||
GET http://localhost:8000/undefined
|
||||
HTTP *
|
||||
[Asserts]
|
||||
status == 200
|
||||
|
@ -1,3 +1,3 @@
|
||||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
hurl tests_failed/color.hurl --color
|
||||
hurl --continue-on-error --color tests_failed/color.hurl
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
hurl tests_failed/color.hurl --color
|
||||
hurl --continue-on-error --color tests_failed/color.hurl
|
||||
|
Loading…
Reference in New Issue
Block a user