Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8945063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:09:52+00:00 2026-06-15T12:09:52+00:00

Summary I’ve recently switched from using Google’s JsTestDriver to Testem but miss LCOV HTML

  • 0

Summary

I’ve recently switched from using Google’s JsTestDriver to Testem but miss LCOV HTML Code Coverage Reports, is there a way to convert JSCover output into LCOV format, so I can use genhtml to create reports like these.

Detail

I’m working from a JSCoverage example using Testem, Jasmine and PhantomJS which generates the 2 following coverage output formats;

coverage.xml

<report>
  <stats>
    <packages value="1"/>
    <classes value="1"/>
    <methods value="1"/>
    <srcfiles value="1"/>
    <srclines value="3"/>
  </stats>
  <data>
    <all name="all classes">
      <coverage type="class, %" value="100% (1/1)"/>
      <coverage type="method, %" value="100% (1/1)"/>
      <coverage type="block, %" value="100% (1/1)"/>
      <coverage type="line, %" value="100% (3/3)"/>
    </all>
  </data>
</report>

jscoverage.json

{
  "hello.js": {
    "coverage": [null, 1, 1, 1],
    "source": ["(function(exports) {", "    exports.hello = function(){", "        return \"hello world\";", "    }", "})(typeof(module) !== \"undefined\" ? module.exports : this);"]
  }
}

Is there a way to cover the above into the jstestdriver.conf-coverage.dat format output by js-test-driver?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:09:54+00:00Added an answer on June 15, 2026 at 12:09 pm

    Is there a way to convert JSCover output into LCOV format

    Yes, see: http://tntim96.github.com/JSCover/manual/manual.xml#reportConversion

    In summary

    java -cp JSCover-all.jar jscover.report.Main --format=LCOV REPORT-DIR SRC-DIRECTORY
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Summary: I need to collect data reliably from the satelite SQL servers using the
Summary : is there a way to get the unique lines from a file
Summary I have been looking at historical Australian Rules outcomes using excel with an
Summary When I execute a very simple program using Perl's Benchmark utility. I get
Summary: I have an ASP.NET MVC website in IIS named 'Website' using an AppPool
Summary: I have a bunch of C functions I have to call from C#.
Summary: I want to take advantage of compiler optimizations and processor instruction sets, but
Summary : I have a project using GNU Autotools. I have a pot file.
Summary Amazingly I could find nothing about this on Google or SO. When I
Summary: How do I configure my facebook application to request additional information from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.