Add explicit assert test

This commit is contained in:
Fabrice Reix 2024-04-10 12:50:36 +02:00 committed by hurl-bot
parent 75042e210e
commit defc3d1cf1
No known key found for this signature in database
GPG Key ID: 1283A2B4A0DCAF8D
4 changed files with 16 additions and 3 deletions

View File

@ -6,3 +6,13 @@
 | ^^^ actual value is <404>
 |
error: Assert failure
--> tests_failed/color.hurl:7:0
 |
 | GET http://localhost:8000/undefined
 | ...
 7 | status == 200
 | actual: int <404>
 | expected: int <200>
 |

View File

@ -1,4 +1,7 @@
GET http://localhost:8000/undefined
HTTP 200
GET http://localhost:8000/undefined
HTTP *
[Asserts]
status == 200

View File

@ -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

View File

@ -1,3 +1,3 @@
#!/bin/bash
set -Eeuo pipefail
hurl tests_failed/color.hurl --color
hurl --continue-on-error --color tests_failed/color.hurl