2016-02-03 86 views
1

在TFS2015/VSTS中使用新的构建系统,我的SpecFlow测试没有得到提升。在同一个项目中,分别使用[TestClass][TestMethod]修饰的类和方法由TFS进行拾取和测试。 TFS2015/VSTS运行SpecFlow 2.0测试的基本要求是什么?SpecFlow + VSTS/TFS 2015

编辑:添加packages.config内容。正如你所看到的,我已经安装了SpecRun,并从Visual Studio中,我能够VS测试任务运行SpecFlow测试,我预计(即它们都出现在测试资源管理器)

<?xml version="1.0" encoding="utf-8"?> 
<packages> 
    <package id="NUnit" version="3.0.1" targetFramework="net452" /> 
    <package id="SpecFlow" version="2.0.0" targetFramework="net452" /> 
    <package id="SpecRun.Runner" version="1.3.0" targetFramework="net452" /> 
    <package id="SpecRun.SpecFlow" version="1.3.0" targetFramework="net452" /> 
</packages> 
+0

我假设你在项目中引用了SpecRun.Runner程序集? – chief7

+1

您是否设置了自定义奶头跑步者的路径:http://stackoverflow.com/questions/31511081/how-to-run-xunit-in-visualstudioonline-build/34879593#34879593 – DaveShaw

+0

您是否还可以提供您的SRProfile? –

回答

2

编辑你并将“自定义测试适配器的路径”设置为您的“包”文件夹所在的源代码管理的位置。

例如:

$(Build.SourcesDirectory)\packages 

enter image description here