如何在Jenkins中显示mbunit/gallio测试日志或控制台输出?

如何在Jenkins中显示mbunit/gallio测试日志或控制台输出?,jenkins,mbunit,gallio,remotewebdriver,Jenkins,Mbunit,Gallio,Remotewebdriver,我正在使用Gallio/MbUnit框架进行web测试,测试由Jenkins启动。我已经安装了Gallio/MbUnit插件,它正在发布xml报告。我试图找到一种在“测试结果”部分显示测试日志或控制台消息的方法,这样团队就可以轻松地读取失败,而不是挖掘任何失败测试运行的“控制台输出” 当我使用Icarus在本地机器上运行这些Gallio/MbUnit测试时,所有内容的格式都非常好,但Jenkins的格式就不那么好了。我希望继续使用它,并改进显示错误的方式。建议 对于失败的测试: Failed

我正在使用Gallio/MbUnit框架进行web测试,测试由Jenkins启动。我已经安装了Gallio/MbUnit插件,它正在发布xml报告。我试图找到一种在“测试结果”部分显示测试日志或控制台消息的方法,这样团队就可以轻松地读取失败,而不是挖掘任何失败测试运行的“控制台输出”

当我使用Icarus在本地机器上运行这些Gallio/MbUnit测试时,所有内容的格式都非常好,但Jenkins的格式就不那么好了。我希望继续使用它,并改进显示错误的方式。建议

对于失败的测试:

Failed

...MainMenuTests.AcctClaimsItems

Failing for the past 4 builds (Since Failed#128 )
Took 47 sec.
add description
Error Message

Expected value to be false.Actual Value : d:\Jenkins\jobs\...\workspace\WebTesting\Base\Helpers.cs:line 90d:\Jenkins\jobs\...\workspace\WebTesting\TigerEye\Tests\MainMenuTests.cs:line 329true
Stacktrace

   at WebTesting.Base.Helpers.Click(IWebDriver driver, IWebElement element) in 
从原始控制台输出:

Start time: 4:21 PM
Initializing the runtime and loading plugins.
Verifying test files.
Initializing the test runner.
Running the tests.
[failed] Test WebTesting/MainMenuTests/AcctClaimsItems
Expected value to be false.
Found System.Web Exception after click to url 
.../Accounting/FETReport.aspx

Actual Value : true

   at WebTesting.Base.Click(IWebDriver driver, IWebElement element) in d:\Jenkins\jobs\...\workspace\WebTesting\Base\StaticHelpers.cs:line 90 at WebTesting...\Tests.MainMenuTests.AcctClaimsItems() in d:\Jenkins\jobs\...\workspace\WebTesting\TigerEye\Tests\MainMenuTests.cs:line 329
代码:


有一个通用的控制台解析插件,可以用来添加编译后步骤

我的测试日志不显示/写入Jenkins正在显示/记录的控制台。
if (driver.PageSource.Contains("System.Web - Exception"))
{
    TestLog.Write("Found exception on page {0}", driver.Url);
    TestLog.Write(driver.PageSource.ToString());
    Console.Write("Found exception on page {0}", driver.Url);
    Console.Write(driver.PageSource.ToString());
    Assert.IsFalse(driver.PageSource.Contains("System.Web - Exception"), "Found      System.Web Exception after click to url {0}",driver.Url);
}