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

Add --curl option to hurl to get curl commad to reproduce a Hurl file #2679

Closed
jcamiel opened this issue Apr 15, 2024 · 2 comments · Fixed by #3378
Closed

Add --curl option to hurl to get curl commad to reproduce a Hurl file #2679

jcamiel opened this issue Apr 15, 2024 · 2 comments · Fixed by #3378
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Apr 15, 2024

Add --curl option to get the list of curl commands to reproduce a run.

When using --verbose, we already display a debug curl command. This option will list the curl command without being force to grep the standard error:

$ hurl --curl out.txt test.hurl
@jcamiel jcamiel added the enhancement New feature or request label Apr 15, 2024
@jcamiel jcamiel added this to the 5.0.0 milestone Apr 17, 2024
@jcamiel jcamiel modified the milestones: 5.0.0, 5.1.0 Aug 28, 2024
@augustomelo
Copy link

As an workaround, you might use the flag --v, --verbose Turn on verbose which will output:

* Request can be run with the following curl command:
* curl ....

@jcamiel
Copy link
Collaborator Author

jcamiel commented Nov 7, 2024

@fabricereix @lepapareil --curl is available now, I've added two integrations tests tests_ok/assert_body_curl.sh and tests_ok/multilines_curl.sh. Don't know yet if we use the current integration tests or if we do dedicated tests with tests_curl/*. I like this simple first step, it fits in our current integration tests model, we can reuse existing Flask endpoints, we can add curl integration tests to tests_failed/*etc... To discuss !

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

Successfully merging a pull request may close this issue.

2 participants