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

Bug: [--output] cli option not generating the output file when [--test] present even if the hurl file has no test assertion #3453

Open
OctavianHome opened this issue Nov 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@OctavianHome
Copy link

OctavianHome commented Nov 28, 2024

What is the current bug behavior?

Running a Hurl file with --output and --test cli flags will not generate an output file even if the file has no test assertions.

Steps to reproduce

/hurl-files/request-001.hurl file content:

GET https://jsonplaceholder.typicode.com/todos/1

Run this command:

hurl \
    --test --color --insecure \
    --output /hurl-files/result.json \
    /hurl-files/request-001.hurl

What is the expected correct behavior?

The /hurl-files/result.json file to be generated if no test assertion present.
Nice to have: when test assertion exists then it still should generate a file with the test result.
--output cli flag should always be honored (or raise a cli warning).

Execution context

  • Hurl Version (hurl --version):

Possible fixes

@OctavianHome OctavianHome added the bug Something isn't working label Nov 28, 2024
@OctavianHome OctavianHome changed the title Bug: [--output] cli option not working when [--test] present even if hurl file has no test assertion Bug: [--output] cli option not generating the output file when [--test] present even if the hurl file has no test assertion Nov 28, 2024
@MadhurSaluja
Copy link

@OctavianHome can I work on this?

@OctavianHome
Copy link
Author

OctavianHome commented Dec 9, 2024

@OctavianHome can I work on this?

@MadhurSaluja Yes, you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants