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

后端 未结 26 1443
梦谈多话
梦谈多话 2020-12-01 11:53

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 te

26条回答
  •  清歌不尽
    2020-12-01 12:06

    FWIW - sourcing the file path of karma.conf.js worked for me locally, but not on my jenkins builder. I have zero clue why this is the case, but on jenkins it was throwing this error unless the karma.conf.js file was in the root directory where the karma command was given. I'm using rails and running the js specs through a rake task. Code is below which might be helpful for some.

    https://gist.github.com/daino3/a39486ff8bfc1668e923

提交回复
热议问题