CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

unable to see alure reports from jenkins

Open vitaly87 opened this issue 8 years ago • 5 comments

What are you trying to achieve?

Hi, I am trying to run with codecept and allure reports. the issue that locally I can see all logs, but when I am trying to run with jenkins and plugin allure 2.7 then I cant see logs.

What do you get instead?

allure-results does not exists Report successfully generated to c:....allure-report Allure report was successfully generated.

I didnt understand what should be 2 params from plugin of allure

Results ->what it means? if my codeceptjs generate it to output folder...

Report path --?

vitaly87 avatar Oct 21 '18 13:10 vitaly87

Allure plugin has only outputDir param. So yes, make a report, make it available to Jenkins, and that should work fine

DavertMik avatar Oct 22 '18 21:10 DavertMik

when we execute using chunks codeceptjs creates individual folders with individual xml n png(for failures). how to put together all reports together in allure ?

Vaahin avatar Oct 23 '18 20:10 Vaahin

@Vaahin Try separating your instances and treat them as unique. In CI/CD like Jenkins, create a new view, create a job for each suite you want to run. In that view you can then choose what jobs you want to see. In this case each suite would run in their own container/machine/vm and you will always have one report generated.

GSasu avatar Oct 25 '18 12:10 GSasu

@DavertMik this is just FYI the allure reporter has more than just outputDir as param. For instance if I want allure report to work with cucumber setup I'ld need to install wdio-allure-reporter and add useCucumberStepReporter: true, but I guess this all goes down to what you need from allure

GSasu avatar Jan 28 '19 17:01 GSasu

@Vaahin First: you must to use uniqueScreenshotNames: true, in codeceptjs config. After tests you should copy all of xml and png files to allure-report directory (you must to create this dir), then use allure plugin: allure results: [[path: 'allure-report']]

ngadiyak avatar Feb 13 '19 05:02 ngadiyak