ui5-test-runner 3.3.2 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/coverage.js +6 -0
- package/src/job.js +1 -1
- package/src/ui5.js +1 -1
package/package.json
CHANGED
package/src/coverage.js
CHANGED
|
@@ -169,6 +169,9 @@ module.exports = {
|
|
|
169
169
|
match: /(.*\.js)(\?.*)?$/,
|
|
170
170
|
custom: async (request, response, url) => {
|
|
171
171
|
if (!url.match(job.coverageProxyInclude) || url.match(job.coverageProxyExclude)) {
|
|
172
|
+
if (job.debugCoverage) {
|
|
173
|
+
getOutput(job).wrap(() => console.log('coverage_proxy ignore', url))
|
|
174
|
+
}
|
|
172
175
|
return // Ignore
|
|
173
176
|
}
|
|
174
177
|
const sourcePath = join(sourcesBasePath, url)
|
|
@@ -179,6 +182,9 @@ module.exports = {
|
|
|
179
182
|
if (sources[url]) {
|
|
180
183
|
await sources[url]
|
|
181
184
|
} else {
|
|
185
|
+
if (job.debugCoverage) {
|
|
186
|
+
getOutput(job).wrap(() => console.log('coverage_proxy instrument', url))
|
|
187
|
+
}
|
|
182
188
|
sources[url] = await download(origin + url, sourcePath)
|
|
183
189
|
}
|
|
184
190
|
} catch (statusCode) {
|
package/src/job.js
CHANGED
|
@@ -130,7 +130,7 @@ function getCommand (cwd) {
|
|
|
130
130
|
|
|
131
131
|
// Specific to legacy (and might be used with url if pointing to local project)
|
|
132
132
|
.option('--ui5 <url>', '[💻] UI5 url', url, 'https://ui5.sap.com')
|
|
133
|
-
.option('--
|
|
133
|
+
.option('--disable-ui5', '[💻] Disable UI5 mapping (also disable libs)', boolean, false)
|
|
134
134
|
.option('--libs <lib...>', '[💻] Library mapping (<relative>=<path> or <path>)', arrayOf(lib))
|
|
135
135
|
.option('--mappings <mapping...>', '[💻] Custom mapping (<match>=<file|url>(<config>))', arrayOf(mapping))
|
|
136
136
|
.option('--cache <path>', '[💻] Cache UI5 resources locally in the given folder (empty to disable)')
|