hurl icon indicating copy to clipboard operation
hurl copied to clipboard

Add option to only print the assertion failures

Open chenrui333 opened this issue 2 years ago • 2 comments

Right now it prints all the results (success or failures), it would be nice just to print out the failures. Thanks!

chenrui333 avatar Aug 08 '23 19:08 chenrui333

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!

jcamiel avatar Aug 08 '23 20:08 jcamiel

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
   |

chenrui333 avatar Aug 16 '23 20:08 chenrui333