错误:您需要包括一些实现__karma __.start方法的适配器 [英] Error: You need to include some adapter that implements __karma__.start method

查看:185
本文介绍了错误:您需要包括一些实现__karma __.start方法的适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向我的项目之一添加一些单元测试.

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

到目前为止,我已经安装并配置了业力,并且已经安装了茉莉花.我的test/文件夹中有一个测试文件.

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

业力服务器已启动,浏览器页面已准备就绪,但karma run失败,如下所示:

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!

此错误消息不适用于Google.

This error message doesn't Google well.

这很明显吗,还是我需要提供更多信息?

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

推荐答案

这似乎是一个非常普遍的错误,但是就我而言,问题是我没有从正确的文件夹中运行karma start,或更改配置后我没有重新启动它.

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.

这篇关于错误:您需要包括一些实现__karma __.start方法的适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆