如何从 Visual Studio 2012 中的 resharper 测试会话窗口导航到功能文件? [英] How to navigate to feature file from resharper test session window in Visual Studio 2012?

查看:19
本文介绍了如何从 Visual Studio 2012 中的 resharper 测试会话窗口导航到功能文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于验收测试,我在 Visual Studio 2012 中使用 TeckTalk SpecFlow.当我运行所有 specflow 方案时,会打开 resharper 单元测试会话窗口,我可以看到所有测试结果.就像下面的屏幕截图.

For acceptance testing I use TeckTalk SpecFlow in Visual Studio 2012. When I run all specflow scenarios, resharper unit test session windows is opened I can see all test results. Like on screen shot below.

问题是,当我在某些功能文件中看到失败的测试(场景)时,如何从 resharper 会话窗口直接导航到此功能文件以对其进行编辑???

The question is, when I see failed test (scenario) in some feature file, how can I navigate directly to this feature file from resharper session window to edit it???

推荐答案

如果通过新的 VS2012 测试资源管理器运行,它似乎工作得很好,在我的机器上,它从项目菜单上的运行 SpecFlow 场景"自动运行.我只能假设 Resharper 妨碍了您的机器.

It seems to work perfectly well if run via the new VS2012 Test explorer, which on my machine worked automatically from "Run SpecFlow Scenarios" on the project menu. I can only assume Resharper is getting in the way on your machine.

尝试测试"->运行"->全部",然后您只需双击该测试即可直接进入相关场景.

Try Test->Run->All, then all you have to do is double click the test and it takes you straight to the scenario in question.

这篇关于如何从 Visual Studio 2012 中的 resharper 测试会话窗口导航到功能文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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