Skip to content

Specify only directory name for output #391

Answered by DannyDainton
skysurfer72 asked this question in Q&A
Discussion options

You must be logged in to vote

That export option is baked into each custom reporter and comes from Newman, it's not something that I've individually added in htmlextra. If you don't use that flag it will push the report to the /newman directly, this will be created if you don't have one.

You could push the report with the default name to a different directory but the directory would need to be created first.

newman run collection.postman_collection.json -r htmlextra --reporter-htmlextra-export ./reports

This would create the HTML report in the ./reports directory, at the root level of the project you're running the command.

If you were to specify an export path with a new directory and give the HTML file a new name, .…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@skysurfer72
Comment options

@DannyDainton
Comment options

@DannyDainton
Comment options

@DannyDainton
Comment options

@skysurfer72
Comment options

Answer selected by skysurfer72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants