Orange-OpenSource / Orange-OpenSource/hurl

Add expected value field in all assert Error Message

Open
#3,012 2 comments 0 reactions 1 assignee View on GitHub

@fabricereix is already working on this.

Since Jan 7, 2025.

enhancement
Dominant language
Rust
Stars
19.2k
Forks
745
Avg merge
5h 3m
Merged PRs (30d)
60

Description

Currently, the expected value is taken from the input Hurl file
for example

error: Assert body value
  --> tests_failed/assert_base64.hurl:12:8
   |
   | GET http://localhost:8000/error-assert-base64
   | ...
12 | base64,bGluZTEKbGluZTIKbGluZTMK;
   |        ^^^^^^^^^^^^^^^^^^^^^^^^ actual value is <hex, 6c696e65310a6c696e65320d0a6c696e65330a;>
   |

Display the expected value along the actual value using the same format.

error: Assert body value
  --> tests_failed/assert_base64.hurl:12:8
   |
   | GET http://localhost:8000/error-assert-base64
   | ...
12 | base64,bGluZTEKbGluZTIKbGluZTMK;
   |        ^^^^^^^^^^^^^^^^^^^^^^^^ expected: <hex, 6c696e65310a6c696e65320d0a6c696e65330a;>
   |                                 actual:   <hex, 6c696e65310a6c696e65320d0a00696e6533;>
   |

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.