allure-framework / allure-maven

Maven plugin generating Allure report from test results
Apache License 2.0
94 stars 55 forks source link

Reports works in Intellij and not in eclipse #225

Closed Siva2221 closed 2 years ago

Siva2221 commented 2 years ago

Issue I'm using Allure+Maven+Testng for report in my framework.

When I run maven goal command "mvn clean test site" test is running and reports are generated in site folder.

Problem is when I open the report in Intellij it redirects to http://localhost:port url and reports are loaded as expected. But when I open the report in eclipse the reports are loading with local system directory URL and report page shows as loading. Also getting 404 Not found error.

What is the difference here ? I'm surprised that reports are working fine in Intellij and not working in Eclipse.

Any suggestion or help on this ?

Refer screenshot attached tempsnip_Intellij

tempsnip_eclipse

tempsnip_404NotFound

baev commented 2 years ago

https://stackoverflow.com/questions/23997449/allure-report-nothing-shown-in-chrome

Siva2221 commented 2 years ago

Issue is not specific to chrome. Report is not opening in any browsers when I open from eclipse.

In Intellij report is opening in all browsers.

baev commented 2 years ago

Issue is not specific to chrome

it's more like webkit specific, not chrome.

In Intellij report is opening in all browsers.

That's because Intellij starts webserver when opens html page and eclipse don't. Allure provides open and serve commands.