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

Drew Noakes picture Drew Noakes · Jun 14, 2014 · Viewed 51.6k times · Source

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?

Answer

Drew Noakes picture Drew Noakes · Jun 14, 2014

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.