Thursday 8 June 2017

How to open allure from gradle tasks?

I am very new to gradle and trying to write a gradle task to generate and open allure report. I am trying to use gradle node plugin(com.moowork.node) to use the "allure-commandline" nodejs package. The report runs fine when I have a custom node script but not when doing the same thing from gradle from the default allure-commandline script.The report process I think works in background and thus ie does not open.

task allure(type: NodeTask){
    script =file('node_modules/allure-commandline/index.js')
    args = ["allure","generate","allureResults","--clean","-o","allureReport"]
   args = ["allure","open","allureReport"]
}



via Ravi

No comments:

Post a Comment