Well, the issue is and isn't with what the Air Test Runner outputs,
meaning,
the file itself is what junitreport expects, however, the junitreport
ant task, by design does a merge on xml files, whose root node is
testsuite, not testsuites. That is, it expects individual files and
produces the same exact file as Air Test Runner outputs.
The issue is there's no way to feed the Air Test Runner output
directly to junitreport (as far as I can see ...)
Now, there are a couple of things. Maybe no one actually is doing what
I tried to do or I haven't figured out the way to do it. Either is
possible. I'm guessing the problem may be circumvented if using CI
tools like Cruise Control. I'm not sure.
However, I was able to achieve what I was after by altering the source
of TestRunnerWindow.as in airtestrunner. Instead of writing the single
file, I loop over the testsuite XML elements and write those to
individual files.
//TestRunnerUtils.writeToFile(results, dir, this.REPORT_FILE_NAME);
for each(var testsuite:XML in results.testsuite)
{
TestRunnerUtils.writeToFile(testsuite, dir, testsuite.@name + ".xml");
}
With this solution, junitreport gets its input exactly as it expects
and builds it's TESTS-TestSuites.xml properly and .. voila, I get my
junit HTML report of Fluint tests.
I'd be happy to provide any further information if this becomes useful
for incorporating into airtestrunner. Or, if indeed, you'd still like
me to file a defect.
Thanks, Steve
> > Thanks, Steve- Hide quoted text -
>
> - Show quoted text -