Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

buster-coverage don't work with buster-amd #10

Open
ComradeDOS opened this issue May 28, 2013 · 0 comments
Open

buster-coverage don't work with buster-amd #10

ComradeDOS opened this issue May 28, 2013 · 0 comments

Comments

@ComradeDOS
Copy link

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(/^\//, '../');
        }
    }
};
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant