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

newman run produces no terminal output if run with -r htmlextra #410

Closed
1 task done
mustaphadem opened this issue Jul 6, 2023 · 6 comments
Closed
1 task done
Labels
state: triaged This issue has been triaged

Comments

@mustaphadem
Copy link

mustaphadem commented Jul 6, 2023

Is There An Existing Issue

What Are You Seeing

Looks like this issue was closed: #374 (comment)

I believe it is the same problem.
I will additionally say that this is happening on macOS with M2 chip and I see the same behavior when run on github actions (Ubuntu - 22.04.2 -LTS).
Not sure if that is the culprit but have already tried all suggested steps (global uninstall, install etc.).

When a newman run is triggered with -r htmlextra, the command seems to be stuck, there's no sign of progress.

It generated the html report but there is no output on the console. Tried with --verbose to see if that would make any difference, no luck.

The command I use is: newman run postman/collections/api-smoke.json -e postman/environments/qa.json -r htmlextra

Steps To Reproduce The Issue

  1. Run newman with the hmtlextra flag e.g. newman run postman/collections/api-smoke.json -e postman/environments/qa.json -r htmlextra
  2. There is no sign of progress, no output on terminal.

Full Newman Command Or Node Script

`newman run postman/collections/api-smoke.json -e postman/environments/qa.json -r htmlextra`

HTMLEXTRA Version

1.22.11

Newman Version

5.3.2

Additional Context

No response

@mustaphadem mustaphadem added state: needs-triage This issue needs to be triaged type: bug Something isn't working labels Jul 6, 2023
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

Hey @mustaphadem: 👋 - Thanks for helping to make the reporter better by raising this ticket. I will take a look as soon as I can and get back to you. Cheers, Danny.

@mustaphadem mustaphadem changed the title newman run is stuck with no output if run with -r htmlextra newman run produces no terminal output if run with -r htmlextra Jul 6, 2023
@DannyDainton
Copy link
Owner

DannyDainton commented Jul 6, 2023

Hey @mustaphadem

Does it show the output if you use --reporter-htmlextra-displayProgressBar?

By default, the reporter doesn't output anything, i did add in a progress bar but this didn't render well when used with other reporters. I ended up putting it behind an option flag in an earlier version https://github.com/DannyDainton/newman-reporter-htmlextra/blob/main/CHANGELOG.md#1225---2022-01-27

@DannyDainton DannyDainton added state: awaiting-response Waiting the for the author to respond and removed state: needs-triage This issue needs to be triaged labels Jul 6, 2023
@mustaphadem
Copy link
Author

Hi @DannyDainton,

Thank you for the prompt response, I really appreciate it! Yes, when I use the displayProgressBar flag, it shows the progress bar. So not seeing the regular newman outputs during a run with -r htmlextra is the expected behavior then? If yes, I will be closing this ticket.

Thank you so much.

@DannyDainton
Copy link
Owner

DannyDainton commented Jul 6, 2023

To see the Newman output or the requests, you'll need to add the cli reporter (e.g. -r htmlextra,cli) to the command.

If you're just using Newman without any reporters, it will display the cli output by default.

@DannyDainton DannyDainton removed the type: bug Something isn't working label Jul 6, 2023
@mustaphadem
Copy link
Author

that makes so much sense, thank you! Closing.

@DannyDainton DannyDainton added state: triaged This issue has been triaged and removed state: awaiting-response Waiting the for the author to respond labels Jul 27, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
state: triaged This issue has been triaged
Projects
None yet
Development

No branches or pull requests

2 participants