mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1190298 - Make it easier to access Loop's code coverage. r=andreio NPOTB
This commit is contained in:
parent
815c075007
commit
adf5bedf02
4
browser/components/loop/.gitignore
vendored
4
browser/components/loop/.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
.module-cache
|
||||
test/coverage
|
||||
test/coverage/desktop
|
||||
test/coverage/shared_standalone
|
||||
test/node_modules
|
||||
|
18
browser/components/loop/test/coverage/index.html
Normal file
18
browser/components/loop/test/coverage/index.html
Normal 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>
|
@ -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>
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user