ebi / buster-coverage Goto Github PK
View Code? Open in Web Editor NEWGenerate coverage reports from buster test runs
Generate coverage reports from buster test runs
Would be nice to get better support for new ES5 features.
The extension loads buster-core, but does not state it in its package.json
I got this error then buster-coverage try parse this block:
JID.prototype = {
get node(){
return this._node;
},
set node(new_node){
this._node = JID._checkNodeName(new_node);
},
get domain(){
return this._domain;
},
set domain(new_domain){
if(!new_domain){
throw new JIDInvalidException('Domain name missing');
}
this._domain = JID._checkNodeName(new_domain);
},
get resource(){
return this._resource;
},
set resource(new_resource){
this._resource = new_resource;
},
get bare(){
return this.node + '@' + this.domain;
}
};
Looks like buster-coverage don't know about ES5 getters and setters.
Let me know if you need full error message.
I get the following error when trying to run buster with the buster-coverage extension enabled.
$ buster test
Failed creating session: Unexpected token: operator (<)
at line 0:0 in expression:
<td>
I've used buster-coverage on a different project and it's worked great. One thing that is different between my current project and my other one, is that the current one uses an AMD loader and therefore also has the buster-amd
extension enabled.
Due to the call to fs.existsSync
, the extension will not work on Node 0.6. Not sure if it matters, but the fix is simple: use path.existsSync
if fs.existsSync
is not available (the function moved between Node 0.6 and 0.8)
When I try use both on same time and run buster test
it's hand and nothing happend.
In debug toolbar I see how buster load files and this on ends.
My buster.js file:
var config = module.exports;
config['jslix'] = {
env: 'browser',
rootPath: './',
/* We can safe preload libs only if they don't use define function */
libs: [
'libs/require.js',
'require-config.js',
'libs/log4javascript.js',
'libs/cryptojs/components/core.js',
'libs/cryptojs/components/enc-base64.js',
'libs/cryptojs/components/md5.js',
'libs/cryptojs/components/sha1.js'
// XXX: Next two libs use define
// If we add it's to here we got error
// Link: http://requirejs.org/docs/errors.html#mismatch
// 'libs/jquery.js',
// 'libs/signals.js'
],
sources: ['src/*.js'],
/* If lib use define function you can add this lib to resources */
resources: ['libs/jquery.js', 'libs/signals.js'],
tests: ['tests/*.test.js'],
extensions: [require('buster-coverage'), require('buster-amd')],
'buster-coverage': {
outputDirectory: 'coverage',
format: 'lcov',
combinedResultsOnly: true,
coverageExclusions: ['libs', 'resources']
},
'buster-amd': {
pathMapper: function(path){
return path.replace(/\.js$/, '').replace(/^\//, '../');
}
}
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.