Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit body assert errors display order #2799

Open
jcamiel opened this issue May 17, 2024 · 0 comments
Open

Implicit body assert errors display order #2799

jcamiel opened this issue May 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented May 17, 2024

With this file:

GET http://localhost:8000/follow-redirect
HTTP 200
[Asserts]
body == "foo"
`foo`

Implicit body asserts are after explicit asserts in the file but errors are not displayed in thsi order:

$ hurl --location test.hurl
error: Assert body value
  --> tests_ok/follow_redirect.hurl:5:1
   |
   | GET http://localhost:8000/follow-redirect
   | ...
 5 | `foo`
   | ^^^^^ actual value is <bar>
   |

error: Assert failure
  --> tests_ok/follow_redirect.hurl:4:0
   |
   | GET http://localhost:8000/follow-redirect
   | ...
 4 | body == "foo"
   |   actual:   string <bar>
   |   expected: string <foo>
   |
@jcamiel jcamiel added the enhancement New feature or request label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant