Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Receiving could not find “htmlextra” reporter when i run it on my local (Linux) neman html report generation

I am receiving the below message when I run Newman run the command with parameter -r HTML extra. Where I have already installed HTML extra using -g (globally). But when I create a Newman .js file I am able to execute. Please advise what might have gone wrong.

" Newman: could not find "htmlextra" reporter ensure that the reporter is installed in the same directory as newman please install reporter using npm "

like image 283
Jenson P Johnson Avatar asked Oct 22 '25 16:10

Jenson P Johnson


2 Answers

Install newman & htmlextra from the node.js command prompt using below commands:

npm install -g newman
npm install -g newman-reporter-htmlextra

After successful installation, run the below command

newman run ""Reqres.postman_collection.json" --reporters=cli,htmlextra
like image 68
Tahera Firdose Avatar answered Oct 27 '25 04:10

Tahera Firdose


Single or double quotation marks ('',"") must be added in the --reporters args in order to take both args and run on cli and export HTML report at the same time.

newman run collectionName.json --reporters='cli,htmlextra'

like image 28
Yiannis Psaronikolakis Avatar answered Oct 27 '25 04:10

Yiannis Psaronikolakis