[GRADLE-582] Impossible to add listeners Created: 01/Aug/09  Updated: 04/Jan/13  Resolved: 23/Sep/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.7
Fix Version/s: 0.8

Type: Bug
Reporter: Levi Hoogenberg Assignee: Tom Eyckmans
Resolution: Fixed Votes: 0


 Description   

When using the following configuration:

test {
    useTestNG()

    options {
        listeners << 'org.testng.reporters.JUnitXMLReporter'
    }
}

Running gradle test results in the following message from TestNG:

Cannot load class from file: [org.testng.reporters.JUnitXMLReporter]

It seems as if the toString() of the listener list is passed as a parameter, whereas a join(', ') should be applied first.



 Comments   
Comment by Tom Eyckmans [ 23/Sep/09 ]

fix committed + I've made the useDefaultListener option available through the TestNG options so all aspects of the listeners can be controlled.

We do set useDefaultListeners to false when the testReport is disabled, but by making the useDefaultListener option available it can be controlled in the same way as when using the Ant task directly in stead of calling disableTestReport on the test task.

Comment by Hans Dockter [ 24/Sep/09 ]

Thanks Tom.

Generated at Wed Jun 30 11:33:37 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.