如果发现忽略或待定测试,则在Jenkins中进行通过测试(绿色)

时间:2016-03-28 22:08:27

标签: selenium-webdriver jenkins specflow specrun

我在Jenkins中运行specflow测试,每次测试处于挂起状态时/ Ignored / Inconclusive它使整个测试套件失败(如Red Jenkins构建)。如何消除这种情况并使Jenkins构建成绿色?

注意: - 我们正在jenkins中使用Cmdline执行测试,结果如下。

@pushd %~dp0

%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe  "******".Tests.csproj"

@if ERRORLEVEL 1 goto end

@cd ..\packages\SpecRun.Runner.*\tools

@set profile=%1
@if "%profile%" == "" set profile=Default

SpecRun.exe run %profile%.srprofile "/baseFolder:%~dp0\bin\Debug" /log:specrun.log /filter:%2 /report:TestResults\%3

:end

@popd

我们有什么与错误级别有关吗?

任何帮助都将不胜感激。

0 个答案:

没有答案