Running DUnit tests from Hudson

2019-04-14 19:57发布

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?

0条回答
登录 后发表回答