Chutzpah测试适配器在哪里安装PhantomJS? [英] Where does Chutzpah Test Adapter install PhantomJS?

查看:60
本文介绍了Chutzpah测试适配器在哪里安装PhantomJS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在VS2013上安装了Chutzpah Test Adapter扩展,并通过VS的Test Explorer运行了一个简单的Jasmine测试.效果很好-无头运行测试.

I've just installed the Chutzpah Test Adapter extension to a VS2013, and run a simple Jasmine test through VS's Test Explorer. That worked fine - running the tests headless.

然后,我尝试通过Resharper的测试资源管理器运行相同的测试,但这没有用.它打开了浏览器窗口,然后什么也没发生.

Then I tried to run the same test through Resharper's test explorer, and and that didn't work. It opened up a browser window, and then nothing happened.

我通常更喜欢Resharper的测试资源管理器,但是尽管我一直constant不休,但我是团队中唯一使用Resharper的人,这就是为什么我要关注Chutzpah.因此,现在的问题是我是否要放弃VS2013测试资源管理器的Resharper测试资源管理器,还是可以让Resharper的工具正常工作.

I've generally preferred Resharper's test explorer, but I'm the only one on the team who's using Resharper, despite my constant nagging, which is why I'm looking at Chutzpah. So the question, at this point, is whether I abandon the Resharper test explorer for the VS2013 test explorer, or whether I can get Resharper's to work.

Resharper选项对话框允许我选择要在哪个浏览器中运行测试,PhantomJS是选项之一,但它需要PhantomJS可执行文件的路径.这就是问题-据我了解,Chutzpah安装了PhantomJS,但我无法弄清楚它的放置位置.

Resharper Options dialog allows me to choose which browser to run the tests in, and PhantomJS is one of the options, but it needs a path to the PhantomJS executable. And here's the thing - it's my understanding that Chutzpah installs PhantomJS, but I've not been able to figure out where it put it.

有人有什么主意吗?

推荐答案

将Chutzpah安装为VS扩展时,它将所有其dll和Phantom.exe删除在其扩展安装目录中.这是C:\ Users [用户名] \ AppData \ Local \ Microsoft \ VisualStudio \ 12.0 \ Extensions [randomFolderName]中的随机文件夹名称.如果您进入扩展目录,则可以搜索幻像或尝试每个文件夹.

When installe Chutzpah as a VS extension it will drop all of its dll's and Phantom.exe in its extension install directory. This is a random folder name in C:\Users[userName]\AppData\Local\Microsoft\VisualStudio\12.0\Extensions[randomFolderName]. If you go to the extensions directory you can search for phantom or try each folder.

或者,您也可以下载phantom.exe并将其放在所需的位置.

Alternatively, you can just download phantom.exe and put it where you want it.

这篇关于Chutzpah测试适配器在哪里安装PhantomJS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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