Sauce Labs Customer Idea Portal

Submit an idea and make Sauce Labs even better!

Support Istanbul code coverage with Mocha and Karma

I recently ran into an issue where if I had Istanbul code coverage enabled for my javascript unit tests, the Saucelabs session would never close down when using Safari 9 on OS X. It seemed that the Sauce Connect session was working fine and sending heartbeats until the timeout occurred, but the entire run would not complete.

I opened a support case (41399) but they suggested I open a feature request to your team. Hopefully this is the right path to get this supported and working, and as of right now we are not able to run code coverage in an automated build/CI environment with Saucelabs because of this issue.

  • Guest
  • Aug 15 2016
  • Will not implement
  • Attach files
  • Yaroslav Borets commented
    19 Nov, 2016 02:04am

    Hi Justin,

    Unfortunately Sauce Labs doesn't have access to your code directly and interacts with your with the browser through the JSON Wire Protocol. Due to this technical limitations we are unable to support code coverage tools including Istambul.  Please let us know if you have any additional questions. 

    Thank You, 

    Yarosla