Skip to content

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

Open
@OctavianHome

Description

@OctavianHome

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions