[GRADLE-2246] Cannot build with reportng Created: 20/Apr/12 Updated: 04/Jan/13 Resolved: 09/May/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-9 |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Lidia Marchioni | Assignee: | Unassigned |
Resolution: | Not A Bug | Votes: | 0 |
Attachments: | build.gradle demo.out g.out g.out.exception.txt testreportng.zip |
Description |
Adding reportng dependency causes the following error: Could not resolve all dependencies for configuration ':compile'. The dependency is declared as: dependencies { compile "org.seleniumhq.selenium:selenium-java:2.15.0" compile "org.testng:testng:6.3.1" compile "org.uncommons:reportng:1.1.2" }If I change the declaration to the following: dependencies { } I get the following exception:
(...) Caused by: java.lang.StackOverflowError Full exception attached. Have not found a solution nor a workaround to this issue. |
Comments |
Comment by Szczepan Faber [ 30/Apr/12 ] |
Both: dependencies { compile "org.seleniumhq.selenium:selenium-java:2.15.0" compile "org.testng:testng:6.3.1" compile ("org.uncommons:reportng:1.1.2") { exclude group: "org.testng", module: "testng" } } and: dependencies { compile "org.seleniumhq.selenium:selenium-java:2.15.0" compile "org.testng:testng:6.3.1" compile ("org.uncommons:reportng:1.1.2") } worked fine for me when I did gradle dependencies with 1.0-rc-3. Can you try to reproduce with 1.0-rc-3, please? |
Comment by Lidia Marchioni [ 01/May/12 ] |
Upgrading to 1.0-rc-3 resolved the reportng dependency issue when using the exclude group clause. I'm still seeing the same issue without it though:
Lidia |
Comment by Lidia Marchioni [ 01/May/12 ] |
Unfortunately, even though I can now run the tests with the dependencies, once I add reportng listeners to build.gradle, I get a StackOverflowException:
more details: Caused by: java.lang.StackOverflowError My listeners are defined as: options { listeners << 'org.uncommons.reportng.HTMLReporter' listeners << 'org.uncommons.reportng.JUnitXMLReporter' } I'll attach gradle.build and full output under g.out.exception.txt. |
Comment by Lidia Marchioni [ 01/May/12 ] |
Attaching build file. |
Comment by Lidia Marchioni [ 01/May/12 ] |
Attaching output with exception (execution with --stacktrace option). |
Comment by Lidia Marchioni [ 08/May/12 ] |
Created a simple test in TestNG alone (no Selenium) and got it working with the following: Then added the reportng listeners, as in: task demo(type: Test) { } and the build failed with: Execution for Test process 'Gradle Worker 1' FAILED While this is a different error than before, I still cannot get reportng working with gradle. |
Comment by Lidia Marchioni [ 08/May/12 ] |
Simple TestNG test that fails to run with reportng listeners enabled. |
Comment by Lidia Marchioni [ 08/May/12 ] |
Output of the TestNG only run with ReportNG listeners (NoClassDefFoundError: com/google/inject/Module). |
Comment by Lidia Marchioni [ 08/May/12 ] |
OK, so I found that I needed to add guice as a dependency - with this both projects work fine: compile group: 'com.google.inject', name: 'guice', version: '3.0' |
Comment by Lidia Marchioni [ 08/May/12 ] |
I cannot close this issue. |
Comment by Szczepan Faber [ 09/May/12 ] |
I'm glad you managed to resolve the problem! Closing... |