2011-08-17 42 views
12

我可以使用批處理命令成功運行NUnitHudson並且它會在NUnit安裝目錄中生成TestResult.xml。但是Hudson產生使用NUnit在Hudson中找不到測試報告文件

No NUnit test report files were found. Configuration error? 

正確的路徑Publish NUnit test result report下給出的xml文件後的錯誤。該xml文件應該在項目的工作區或有任何其他配置,使其工作?

我也提到Problem Publishing NUnit Testing Result Reports with Hudson 也沒有找到答案。

回答

15

以不同的方式來解決上述問題想後,我可以通過將TestResult.xml文件工作區中的文件夾中的項目Hudson小號jobs文件夾,只有TestResult.xmlPublish NUnit test result report給予,而不是給人以絕對路徑解決問題xml文件。

希望這可以幫助別人......

+0

是的,你應該能夠使用相對於工作區根的路徑。例如,project/tests/TestResult.xml,或者如果您有多個結果,請使用project/tests/*。xml。請注意,沒有領先/ – Dodecapus

0

我發現使用雙引號不起作用。

例子:

測試報告個XML = NUnit的,爲result.xml(作品!) 測試報告個XML = 「NUnit的 - 爲result.xml」(不工作)

有一個小的機會,這是你的問題...

相關問題