No test report files were found in Hudson with NUnit

天大地大妈咪最大 提交于 2019-12-06 18:52:42

问题


I could successfully run NUnit in Hudson using batch command and it generates the TestResult.xml in the NUnit installation directory. But Hudson generates the error that

No NUnit test report files were found. Configuration error?

after the correct path is given to the xml file under Publish NUnit test result report. Should the xml file be in the project's workspace or is there any other configuration to make this work???

I referred to the Problem Publishing NUnit Testing Result Reports with Hudson too but no answer was found.


回答1:


After trying in different ways to solve the above problem, I could solve it by placing the TestResult.xml file in the workspace folder for the project in Hudson s jobs folder and giving only TestResult.xml under Publish NUnit test result report instead of giving the absolute path to the xml file.

Hope this may help someone...




回答2:


I found that using double quotes is not working.

Example:

Test report XMLs = nunit-result.xml (works!) Test report XMLs = "nunit-result.xml" (do NOT work)

There is a SMALL chance that this is your problem...



来源:https://stackoverflow.com/questions/7089602/no-test-report-files-were-found-in-hudson-with-nunit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!