Skip to content

Commit dd10db2

Browse files
committed
Add support for HURL_CONTINUE_ON_ERROR env var.
1 parent f01975b commit dd10db2

File tree

12 files changed

+95
-57
lines changed

12 files changed

+95
-57
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Large diffs are not rendered by default.

docs/manual.md

Lines changed: 17 additions & 17 deletions
Large diffs are not rendered by default.

docs/manual/hurl.1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,13 +427,14 @@ Environment variables: HURL_VERY_VERBOSE
427427

428428
.IP "--continue-on-error "
429429

430-
Continue executing requests to the end of the Hurl file even when an assert error occurs.
431-
By default, Hurl exits after an assert error in the HTTP response.
430+
Continue executing requests to the end of the Hurl file even when an assert error occurs. By default, Hurl exits after an assert error in the HTTP response.
432431

433432
Note that this option does not affect the behavior with multiple input Hurl files.
434433

435434
All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.
436435

436+
Environment variables: HURL_CONTINUE_ON_ERROR
437+
437438
This is a cli-only option.
438439

439440
.IP "--delay <MILLISECONDS> "

docs/manual/hurl.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,14 @@ Environment variables: HURL_VERY_VERBOSE
445445

446446
#### --continue-on-error {#continue-on-error}
447447

448-
Continue executing requests to the end of the Hurl file even when an assert error occurs.
449-
By default, Hurl exits after an assert error in the HTTP response.
448+
Continue executing requests to the end of the Hurl file even when an assert error occurs. By default, Hurl exits after an assert error in the HTTP response.
450449

451450
Note that this option does not affect the behavior with multiple input Hurl files.
452451

453452
All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.
454453

454+
Environment variables: HURL_CONTINUE_ON_ERROR
455+
455456
This is a cli-only option.
456457

457458
#### --delay <MILLISECONDS> {#delay}

docs/spec/options/hurl/continue_on_error.option

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ long: continue-on-error
33
help: Continue executing requests even if an error occurs
44
help_heading: Run options
55
cli_only: true
6+
env_var: HURL_CONTINUE_ON_ERROR
67
---
7-
Continue executing requests to the end of the Hurl file even when an assert error occurs.
8-
By default, Hurl exits after an assert error in the HTTP response.
8+
Continue executing requests to the end of the Hurl file even when an assert error occurs. By default, Hurl exits after an assert error in the HTTP response.
99

1010
Note that this option does not affect the behavior with multiple input Hurl files.
1111

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
error: Assert status code
2+
--> tests_failed/continue_on_error/continue_on_error.hurl:2:6
3+
|
4+
| GET http://localhost:8000/continue-on-error
5+
2 | HTTP 400
6+
| ^^^ actual value is <200>
7+
|
8+
9+
error: Assert status code
10+
--> tests_failed/continue_on_error/continue_on_error.hurl:8:6
11+
|
12+
| GET http://localhost:8000/continue-on-error
13+
8 | HTTP 400
14+
| ^^^ actual value is <200>
15+
|
16+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Set-StrictMode -Version latest
2+
$ErrorActionPreference = 'Stop'
3+
4+
$env:HURL_CONTINUE_ON_ERROR = '1'
5+
hurl tests_failed/continue_on_error/continue_on_error.hurl
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -Eeuo pipefail
3+
4+
export HURL_CONTINUE_ON_ERROR=1
5+
hurl tests_failed/continue_on_error/continue_on_error.hurl

packages/hurl/README.md

Lines changed: 17 additions & 17 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)