Running DUnit tests from Hudson

可紊 提交于 2019-12-06 10:35:46

问题


I finally got Hudson to build my project and the corresponding test project (using the XMLTestRunner2 unit provided in the Embarcadero forum). Running the test executable manually correclty produces a "dunit-report.xml" file with the test results.

I can't get Hudson to call my executable and produce this file though.

What I did is to create a build step as a Windows batch command and just call the executable. I tried several things:

bin\Test.exe
start bin\Test.exe
start /wait bin\Test.exe
start /wait /b bin\Test.exe

I cannot get it to work. It either returns immediately with some random exit code or it does not produce the XML output file. This must be very simple but I'm a little bit frustrated by now, because I don't get it to work.

What's the right way to execute the unit tests from Hudson?

来源:https://stackoverflow.com/questions/12248623/running-dunit-tests-from-hudson

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