webdriverio-community/wdio-html-reporter

html-nice reporter not showing any scenario steps status in the master report in cucumber framework

vdrulerz opened this issue · 12 comments

Everything seemed to be working well with @rpii/wdio-html-reporter but ever since I have started using html-nice reporter it is not showing scenario level status in the populated report

If you see below screenshot, there is nothing showing below the spec file and it's all blank

image

It should have ideally showed scenario level status like it used to show before.

Here is my wdio.conf.ts configuration for this report

image

image

image

rpii commented

I have looked at a cucumber report, and there appears to be no test steps in the json file. so they changed something. thats why metrics are coming up empty. show me one of your json files if it has any test steps in it.

@rpii Hi I looked in to the the json files and it is not empty in my case it has steps data too. But still I am not able to see the scenario steps status in the html report it just shows spec name

image

This seems to be an issue, before version 7 of WDIO this report was working fine looks like after refracturing this report in TS....cucumber framework is not supported at all

Can you investigate it once and see what exactly is the issue ??

rpii commented

So from what I can see the format has changed and the nesting of the suites and tests is different. I will look into this and get this fixed

Thanks much @rpii.....will look forward to further updates from your side

rpii commented

Well, to fix this recursion needs to be used in the handlebars template to handle the nested suites structure. I am looking into this and doing a lot of debugging but it will likely not be a quick tix.

@rpii Thanks for the heads up, as you pointed out that it's not a quick fix so will wait for further updates from your end

rpii commented

Please try this version out. It has been reworked and passes a basic cucumber feature test.

@rpii Does the fix work also for jasmine framework?

rpii commented

I dont use the Jasmine framework or have a test case for it. I have no reason to believe it wont. You can try it. if it fails send me the master-report.json file

On Fri, Aug 6, 2021 at 4:34 AM andreeamorariu @.***> wrote: @rpii https://github.com/rpii Does the fix work also for jasmine framework? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#65 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEK7LYC5PZPC7LOWJUDT3PCBXANCNFSM5AUBFT5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

Thank you. I used the new version and it's working! :)

rpii commented