Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"basePath" is relative to "C:\" instead of config file #1091

Closed
halcarleton opened this issue Jun 5, 2014 · 0 comments
Closed

"basePath" is relative to "C:\" instead of config file #1091

halcarleton opened this issue Jun 5, 2014 · 0 comments

Comments

@halcarleton
Copy link

I'm running into an issue when trying to run karma. I am running it via gulp task and when it runs it logs Executed 0 of 0 ERROR. In the log before that I found this:

WARN [watcher]: Pattern "C:/bower_components/**/*.js" does not match any file.
WARN [watcher]: Pattern "C:/src/**/*.js" does not match any file.
WARN [watcher]: Pattern "C:/tests/**/*Spec.js" does not match any file.

All these files should be relative to the location of the config file(as described in the documentation), not C:\.

Here is my gulp task:

var karma = require('karma').server;
gulp.task('test', function (done) {
    karma.start({configFile: '../../../karma.conf.js', singleRun: true}, done);
});

Related config parameters:

module.exports = function (config) {
    config.set({

...

        basePath: '',
        files: [
            {patterns:'bower_components/**/*.js'},
            {patterns:'src/*.js'},
            {patterns:'tests/**/*Spec.js'}
        ],
        exclude: [],

...

    });
};

This is my first attempt at adding Karma to my workflow, so I hope I'm not missing something obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant