Git Product home page Git Product logo

buster-coverage's People

Contributors

ebi avatar garbas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

buster-coverage's Issues

Failed creating session: Unexpected token: punc (()

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.

Failed creating session: Unexpected token: operator (<)

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.

Does not work on Node 0.6

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)

buster-coverage don't work with buster-amd

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(/^\//, '../');
        }
    }
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.