Wednesday, 15 June 2011

junit - What is source data for the report generated by junitreport ant task? -



junit - What is source data for the report generated by junitreport ant task? -

the junit official documentation states:

junitreport collects individual xml files generated junit task using nested element.

other part of same page states:

<junitreport todir="./reports"> <fileset dir="./reports"> <include name="test-*.xml"/> </fileset> <report format="frames" todir="./report/html"/> </junitreport>

would generate tests-testsuites.xml file in directory reports , generate default framed study in directory report/html.

let's say, have file test-all.xml generated junit task in "reports" directory. want utilize info source junitreport task:

<fileset dir="./reports"> <include name="test-all*.xml"/> </fileset>

i expect html study based on info generated.

i tried it. empty tests-testsuites.xml file generated , result empty html file.

two documentation statements quoted above somehow contradict each other: first 1 says utilize generated files create study , sec 1 says generate new file. can explain how works? how can command info source used generate html report?

thanks.

try running ant -debug. suspect

<include name="test-all*.xml"/>

is not matching files. please seek with

<fileset dir="./reports"> <include name="test-*.xml"/> </fileset>

ant junit

No comments:

Post a Comment