0

I'm working on an application who has two sides; a desktop and a mobile. In order to test that everything work's fine, we wrote some unit tests, and setup a karma-coverage.

I already have two config file, the first one is for mobile, the second one for desktop, and it generate two distinct coverage reports.

What I need, is to change the default report title. Actually, this is "Code coverage report for All files". I want to set it up to "Code coverage report for All files - Smartphone|Desktop".

Anyone knows if there is a parameter to change this default title?

Nico
  • 255
  • 2
  • 12

1 Answers1

0

Use a Greasemonkey/Tampermonkey script for this:

 document.querySelector(".entity").innerHTML += " - Smartphone|Desktop"

For example:

// ==UserScript==
// @name        Code Coverage
// @namespace   script[id]
// @include     http://127.0.0.1:8080/
// @version     1
// @grant       none
// ==/UserScript==

document.querySelector(".entity").innerHTML += " - Smartphone|Desktop"

Then save the page as HTML, MHTML, data URL, or PDF.

References

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265