Orange-OpenSource / Orange-OpenSource/hurl
Add expected value field in all assert Error Message
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.