No test report files were found in Hudson with NUn

2019-04-19 22:45发布

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.

2条回答
你好瞎i
2楼-- · 2019-04-19 23:07

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...

查看更多
唯我独甜
3楼-- · 2019-04-19 23:12

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...

查看更多
登录 后发表回答