Jenkins/Hudson None of the test reports contained any result Jenkins/Hudson None of the test reports contained any result jenkins jenkins

Jenkins/Hudson None of the test reports contained any result


Usually it works the following way: After you (or in your case jenkins) started the ant-script, you will have some tasks creating folders defined in properties, gathering some java files defined in classpathes, compiling these classes, running tests on them and finally constructing a jar.

To know which task (target) comes first ant usually uses a default-target, which gets started, as soon as you start your build-process. This target has so called dependencies (related targets), which will have to be finished first, before it is going to start.

In your case, your targets don't seem to have any dependencies on your junit targets (some even seem redundand, like TicTacToe and FieldTest seem to be the same). It also seems your ant-script somehow got auto-generated and modified. While modifing them you seem to forget to add your junit targets as dependencies to your targets, so I guess you also miss some basics in ANT.

I suggest to read the following tutorial. It will help you getting started building your own ant-script and there is also a chapter on how to include junit tests in your script. Jenkins seems to be configured fine, since it obviously started your build and tried to generate a report. It just didn't succeed, because your test have never been started to generate the necessary xmls for those reports, which causes the build to fail, eventhough your build-process was successful.