hurl
hurl copied to clipboard
Add option to only print the assertion failures
Right now it prints all the results (success or failures), it would be nice just to print out the failures. Thanks!
Hi @chenrui333 could you provide us a little more details? Maybe give example of what is the current behavior and what would be the proposed feature? Thanks!
sure, instead of printing out full test logs as shown below:
$ hurl --test hurl/chenrui.dev/*.hurl
hurl/chenrui.dev/404.hurl: Running [1/2]
error: HTTP connection
--> hurl/chenrui.dev/404.hurl:1:5
|
1 | GET https://404.chenrui.dev
| ^^^^^^^^^^^^^^^^^^^^^^^ (6) Could not resolve host: 404.chenrui.dev
|
hurl/chenrui.dev/404.hurl: Failure (0 request(s) in 67 ms)
hurl/chenrui.dev/site.hurl: Running [2/2]
hurl/chenrui.dev/site.hurl: Success (2 request(s) in 4168 ms)
--------------------------------------------------------------------------------
Executed files: 2
Succeeded files: 1 (50.0%)
Failed files: 1 (50.0%)
Duration: 4239 ms
just print out this
$ hurl --test hurl/chenrui.dev/*.hurl
hurl/chenrui.dev/404.hurl: Running [1/2]
error: HTTP connection
--> hurl/chenrui.dev/404.hurl:1:5
|
1 | GET https://404.chenrui.dev
| ^^^^^^^^^^^^^^^^^^^^^^^ (6) Could not resolve host: 404.chenrui.dev
|