-->

Generate HTML code coverage reports with intern

2019-08-28 04:20发布

问题:

The intern testing framework (http://theintern.io) comes with built in istanbul support.

Adding lcov to the reports array generates only a lcov.info file which might be converted with genhtml:

define({
  // ..
  reporters: [
    'lcov'
  ],
  //..
});

Is it possible to generate a full html report?

回答1:

You can use the 'lcovhtml' (Intern 1.4–2.2) or 'LcovHtml' (Intern 3+) reporter to generate a full HTML coverage report.