在Visual Studio中是否有Specflow与cucumber具有相似目标的项目,但对于cucumberjs?
我正在考虑使用Visual Studio的单元测试/ bdd框架。 Cucumberjs似乎是一个明显的选择,因为我正在使用Specflow来测试c#。但是,cucumberjs需要安装nodejs。
Chutzpah在Visual Studio中运行jasmine,qunit等内容。有没有办法为cucumberjs做同样的事情?对于带有其他东西混合的visualstudio,也许nodejstools?
Chutzpah有一个Feature request: Cucumber-js support,但它正在进行中。
(Chutzpah被转移到github,因此问题丢失了)
A new Chutzpah feature request on github for cucumber-js support
有interview with a cucumber core member说(见下文)听起来很有希望:
“支持Cucumber.js正被添加到流行的IDE,如Jetbrains Webstorm 8和Visual Studio。“
答案 0 :(得分:4)
根据David Leitner的回复,我已经创建了在Visual Studio中设置cucumberjs的分步指南。
http://blogs.endjin.com/2015/10/step-by-step-guide-to-setting-up-cucumberjs-in-visual-studio-2015/
答案 1 :(得分:1)
我使用Visual Studio Task Runner Explorer完成了这项工作。 (如果您使用VS 2013,则必须添加它,2015年已包含它。)
此扩展是Grunt和Gulp直接在Visual Studio 2013中的任务运行器。现在可以定义一个Grunt任务,例如this one运行您的cucumberjs功能。