Orange-OpenSource / hurl

Hurl, run and test HTTP requests with plain text.
https://hurl.dev
Apache License 2.0
12.75k stars 478 forks source link

improve --verbose option #198

Open lepapareil opened 3 years ago

lepapareil commented 3 years ago

It would be useful if the verbose mode also displayed the details of the asserts and returns of the tests in success as it is for failed tests. This way we can also see the false negatives.

fabricereix commented 3 years ago

Captures are logged in verbose mode, it makes sense to also log the successful asserts.

* Asserts
* jsonpath "$.count" equals {{count}}
*     actual: int <5>
*     expected: int <5>
* jsonpath "$.count" exists
*     actual:   int <5>
*     expected: something
* jsonpath "$.toto"  not exists
*     actual:   none
*     expected: not something
* jsonpath "$.errors" countEquals 5
*    actual:   5
*    expected: 5
fabricereix commented 3 years ago

Simlilar to logging captures, source line numbers are not given.

* Captures
* an_object: Object()
* a_list: [1,2,3]
* a_null: null
* an_integer: 1