build.gradle - integrate ant junit generated test-results in gradle html report -
in gradle build script, added dolast method test task run ant.junit task execute tests few jar files.
test << { //run ant junit task reports stored in $builddir/test-results //after ant junit completion , "test" task completion, //how can gradle generated html report include above test-results? }
how enhance task gradle html report benefit? see ant junit test xml reports getting created in $builddir/test-results along other "gradle test" created xmls. $builddir/reports/tests" contains only. hoping gradle pick ant junit created test result xml files , include in html report. not happening. how can behaviour?
i tried create task of type testreport. did not help.
task runtestsfromjar( type: testreport ) { destinationdir=file("$builddir/reports/tests") reporton tasks.test, files("$builddir/test-results/binary/test") }
i working gradle 1.8.
i suggest creating task of type test replace doafter closure.
task anttests(type: test){ //configuration here }
i believe @ point can use testreport task in similar manner previous attempt
task runtestsfromjar( type: testreport ) { destinationdir=file("$builddir/reports/tests") reporton test, anttests }
my attempts generate report based on directory of existing xml result files, , on binary
subfolder unsuccessful well
Comments
Post a Comment