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

Karma launcher errors if no plugin is defined for a detected browser #34

Open
GreenGremlin opened this issue Mar 27, 2018 · 4 comments
Open

Comments

@GreenGremlin
Copy link

GreenGremlin commented Mar 27, 2018

My Karma config plugins look like this:

        plugins: [
            'karma-webpack',
            'karma-jasmine',
            'karma-mocha-reporter',
            'karma-chrome-launcher',
            'karma-firefox-launcher',
            'karma-detect-browsers',
            'karma-sourcemap-loader',
        ]

On a Mac, when Safari is detected, karma fails with the following message.

27 03 2018 15:15:49.888:ERROR [launcher]: Cannot load browser "Safari": it is not registered! Perhaps you are missing some plugin?

I see commit message 4fbb4f7 indicates that Karma doesn't require all plugins to be configured, but that is not what I'm seeing with [email protected].

@4kochi
Copy link
Collaborator

4kochi commented Mar 28, 2018

Afaik if you use the plugins array in the config then you have to add all the plugins. Or you can remove the plugins configuration and then karma takes care of. Maybe you can check this.

@GreenGremlin
Copy link
Author

If you don't define the plugins array, how is karma-detect-browsers loaded?

@4kochi
Copy link
Collaborator

4kochi commented Mar 28, 2018

frameworks: ['detectBrowsers']

@ansermino
Copy link

Any updates on this? Having the same issue with Chrome. Seems logical that you would want to limit testing to specific browsers and not have it dependent on the machine that its running on.

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

3 participants