使用the 2015/VSTS中的新构建系统,我的SpecFlow测试不会被采纳。在同一个项目中,分别使用[TestClass]和[TestMethod]修饰的类和方法被TFS获取和测试。test 2015/VSTS运行SpecFlow 2.0测试的基本要求是什么?
编辑:添加packages.config内容。如您所见,我已经安装了SpecRun,在Visual中,我能够像我所期望的那样运行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>发布于 2016-02-03 22:08:30
编辑您的VS测试任务,并设置到自定义测试适配器的路径到源代码管理您的“包”文件夹中的位置。
例如:
$(Build.SourcesDirectory)\packages

发布于 2018-01-19 13:59:14
已经看过这个答案了?Built tests are not added to the Visual Studio Test Explorer window
这帮了我今天早上的忙(VS2017,SpecFlow版本:2.1.0.0,SpecFlow+ Excel版本:1.4.2.0)。
https://stackoverflow.com/questions/35184417
复制相似问题