Gradle TestNG Task is not create test-output folder

假如想象 提交于 2020-03-06 03:28:57

问题


I just start working with Gradle on Test Automation.

Here we have a problem that test-out folder is not created when we triggered Gradle Task.

Right click > Run As TestNG , it works fine the out-put folder is created.

But when we execute Gradle Task. this folder is not created.

test {
    useTestNG() {
        excludeGroups 'unit'

    }
    ignoreFailures = true
    testLogging.showStandardStreams = true

}


task ParallelTestExecution(type: Test) {

    useTestNG() {

      options.parallel = 'methods' //modes: methods, tests, classes or instances.
      options.threadCount = 3

      includeGroups 'SMOKE','FUNCTIONAL'
      useDefaultListeners = false

      listeners << 'com.systemtest.testreporter.ExtentReporterNG'
      listeners << 'com.systemtest.testreporter.TestListener'
      listeners << 'com.systemtest.testreporter.RetryListener'  


    }
    ignoreFailures = true

}

回答1:


Gradle TestNG tasks default creates a report in build/reports directory.



来源:https://stackoverflow.com/questions/41257967/gradle-testng-task-is-not-create-test-output-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!