This adds a configuration property to be able to specify a prefix path for the resources when served from a web server.
The reason is we are trying to get coverage for mediawiki mobile frontend extension, and we need an extra option for the coverage instrumented files to get matched to the urls since our tests are served from a mediawiki server which prefixes the resources with a path (w/).
Example:
// File system: './javascripts/index.js'
// Webserver url: 'localhost:8080/assets/my-project/javascripts/index.js'
{
baseUrl: '../', // Go up one level to `my-project`
prefixUrl: 'assets/' // Prefix used before the file path on the web url
}
By adding this variable, we can specify that prefix and then the url and the fs path matches and the instrumented code gets used.
This adds a configuration property to be able to specify a prefix path for the resources when served from a web server.
The reason is we are trying to get coverage for mediawiki mobile frontend extension, and we need an extra option for the coverage instrumented files to get matched to the urls since our tests are served from a mediawiki server which prefixes the resources with a path (
w/
).Example:
By adding this variable, we can specify that prefix and then the url and the fs path matches and the instrumented code gets used.