cancel
Showing results for 
Search instead for 
Did you mean: 

Qunit Coverage not working with ES6+ syntax

manuish02
Explorer

Hello Team,

We have been using Qunits for testing our controller code on our fiori applications and we have been using ES6+ syntax. The unit tests do work fine and give you the results however when I enable the coverage using the on the qunit runner html page then it errors out at specifc points where a ES6+ syntax had been used.

It seems to be like the library sap.ui.qunit.qunit-coverage doesnt likes the es6+ syntax. Anyone else facing similar issue and have found a solutiuon around? the alternative we have been doing till now is to convert the code below es6 because we tested it and it works but would like to avoid doing that for obvious reasons.

Regards,

Manish

thecoldstone
Advisor
Advisor

Yes, I have faced the same problem.
Have you tried to create some ticket?

Marissa
Advisor
Advisor
0 Kudos

Hi,

Tag test automation tool for SAP S/4HANA Cloud is for SAP S/4HANA Cloud Test Automation Tool which is an integral part of SAP S/4HANA Cloud Essentials & provisioned for all customers in their Quality systems. So I removed this tag.

Best regards,

Mariss

Accepted Solutions (0)

Answers (0)