I have created the following ant script which runs some junit tests (harnessing selenium) to test the web UI. This all works fine and I can see the resulting TEST*.xml files. For some reason though, when junitreport has completed generating its html files and I open the index.html, the page contains no test results.
My ant script is as follows:
I have two classes in my bin directory as follows:
bin/ - contains the junit .class files
src/ - contains the junit .java files
test/results/junit/ - this contains the XML and junitreport html files
appreciate if anyone can see anything glaring as to why junitreport is not picking up on the xml files and outputting them in the resulting html files.
It's *really* confusing to have three variables pointing to the same directory and use them interchangeably even though they mean the same thing :(
Did you try running it verbose?
Joined: Apr 30, 2006
thanks for the reply. Its true I am using multiple variables which are pointing to the same directory. I don't believe however that this should be causing a problem. I will try verbose mode to see if this reveals anything.
Just to add, there are no errors when running the ant script, just the generated html that junitreport produces contains no test results i.e. does not appear to be picking up the xml files produced by junit.
Appreciate any thoughts on anything that might be wrong with the above ant script.