是否有任何方法可以使用specrun.exe在项目中执行多个功能文件?
我有一个项目学生,我有下面的特色文件:
a.Maths
b.Biology
C.Chemistry
d.Physics.现在我需要一起执行数学和物理。该怎么做呢?
对于单个特性文件(例如:数学),下面的命令运行良好。
@pushd %~dp0
%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe "Student.csproj"
@if ERRORLEVEL 1 goto end
@cd ..\packages\SpecRun.Runner.*\tools
@set profile=%1
@if "%profile%" == "" set profile=Default
SpecRun.exe run %~dp0\%profile%.srprofile "/baseFolder:%~dp0\bin\Debug" /log:specrun.log %2 /filter:testpath:Feature:Maths %4 %5
:end
@popd发布于 2015-12-02 07:10:28
最后,我得到了答案。
我们必须排除我们不想运行的特性文件。
对我来说很好的命令如下所示
SpecRun.exe run %~dp0\%profile%.srprofile "/baseFolder:%~dp0\bin\Debug" /log:specrun.log "/filter:!testpath:Feature:Biology& !testpath:Feature:Chemistry"https://stackoverflow.com/questions/34022844
复制相似问题