简体   繁体   English

如何使用Visual Studio 2015运行Karma + Jasmine + Angular测试?

[英]How to run Karma+Jasmine+angular tests using Visual studio 2015?

Is it possible to run Karma+Jasmine+angular tests using Visual studio 2015? 是否可以使用Visual Studio 2015运行Karma + Jasmine + Angular测试? I tried very hard in past few days to do this but I am not able to achieve this. 在过去几天中,我非常努力地做到了这一点,但我无法实现。 My existing project is created using webstorm and works like charm in webstorm. 我现有的项目是使用webstorm创建的,并且像webstorm中的charm一样工作。 I am amaze the ease with which Webstorm can run karma test. 我很惊讶Webstorm可以轻松进行业力测试。 Unfortunately, I only have 30 days license for Webstorm and will need to be able to run tests using Visual Studio 2015 going forward. 不幸的是,我只有30天的Webstorm许可,并且以后需要能够使用Visual Studio 2015运行测试。

I have tried: 我努力了:

Karma Test Adapter 业力测试适配器

Jasmine Test Adapter 茉莉花测试适配器

Chutzpah Test Runner Chutzpah测试跑步者

but the lack of documentation and instructional videos on these are big hurdles. 但是缺少这些方面的文档和教学视频是一大障碍。

Karma Test adapter worked for me. 业力测试适配器为我工作。 Try downloading it through here 尝试通过此处下载

You may also need to download Karma through the Command Line. 您可能还需要通过命令行下载Karma。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM