Error: You need to include some adapter that implements __karma__.start method

56,341

Solution 1

It does seem like this is a very general error, however in my case the problem was either that I didn't run karma start from the correct folder, or that I didn't restart it after changing the configuration.

I'll leave this question open and hopefully it can become a resource for others who experience this error message.

Solution 2

If you name your karma config file karma.conf.js, you can simply type karma start.

Otherwise specify the filename karma start karmafile.js

(I was in the right directory, but was not specifying a file name.)

Solution 3

You need to run your karma run or whatever function in the folder where karma-conf.js is in.

Solution 4

In my case I had to rename the file to karma.conf.js then do karma start

Solution 5

I was not running karma start command from the path where my karma.conf.js was. I switched to that folder and ran the same command. Thats all

Share:
56,341
Drew Noakes
Author by

Drew Noakes

Developer on .NET at Microsoft.

Updated on July 08, 2021

Comments

  • Drew Noakes
    Drew Noakes almost 3 years

    I'm trying to add some unit tests to one of my projects.

    So far I've installed and configured karma, and have installed jasmine. I've one test file in my test/ folder.

    The karma server has started, the browser page is ready, but karma run fails as follows:

    $ karma run karma-conf.js 
    [2014-06-14 15:19:11.046] [DEBUG] config - Loading config /foo/test/karma-conf.js
    Waiting for previous execution...
    Chrome 35.0.1916 (Linux) ERROR
      You need to include some adapter that implements __karma__.start method!
    

    This error message doesn't Google well.

    Is this something obvious, or do I need to provide more information?