I have set up a Protractor project that uses Allure Reporting. I have managed to get Allure Reporter outputting the HTML file to the allure-report folder, but upon opening the page in the browser it just says "Loading..." on the overview page. When I click on the other tabs, I get a 404 page not found message.
The package.json file contains a scripts section that specifies the test and post-test scripts to run:
"scripts": {
"test": "protractor conf.js",
"posttest": "allure generate allure-results --clean -o allure-report || true"
},
The problem seems to reside in the line:
allure generate allure-results --clean -o allure-report || true
Can anyone advise what I would need to change in package.json in order to populate my report? Is there something obvious I'm missing?
When I run allure serve allure-results
I get the formatted HTML report as expected, but I need to automate the process.