codeceptjs / CodeceptJS

Supercharged End 2 End Testing Framework for NodeJS
http://codecept.io
MIT License
4.11k stars 723 forks source link

unable to see alure reports from jenkins #1271

Closed vitaly87 closed 1 year ago

vitaly87 commented 6 years ago

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 --?

DavertMik commented 6 years ago

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

Vaahin commented 6 years ago

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 ?

GSasu commented 5 years ago

@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 commented 5 years ago

@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

ngadiyak commented 5 years ago

@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']]