Bug 1190298 - Make it easier to access Loop's code coverage. r=andreio NPOTB

This commit is contained in:
Mark Banner 2015-08-04 11:57:20 +01:00
parent d8f1239ab2
commit c5f54611b5
4 changed files with 33 additions and 3 deletions

View File

@ -1,2 +1,4 @@
.module-cache
test/coverage
test/coverage/desktop
test/coverage/shared_standalone
test/node_modules

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
<head>
<meta charset="utf-8">
<title>Loop coverage index</title>
</head>
<body>
<h1>Loop Coverage</h1>
<ul>
<li><a href="desktop/firefox/">Desktop Coverage</a></li>
<li><a href="shared_standalone/firefox/">Standalone Coverage</a></li>
<li><a href="../">Back to unit tests</a></li>
</ul>
</body>
</html>

View File

@ -13,6 +13,7 @@
<li><a href="shared/">Shared tests</a></li>
<li><a href="desktop-local/">Local tests</a></li>
<li><a href="standalone/">Standalone tests</a></li>
<li><a href="coverage/">Code Coverage</a></li>
</ul>
</body>
</html>

View File

@ -28,8 +28,17 @@ module.exports = function(config) {
reporters: ["progress", "coverage"],
coverageReporter: {
type: "html",
dir: "test/coverage/"
dir: "test/coverage/",
reporters: [{
type: "html",
subdir: function(browser) {
// normalization process to keep a consistent browser name
// across different OS
return browser.toLowerCase().split(/[ /-]/)[0];
}
}, {
type: "text-summary"
}]
},
// Web server port.