Problem solved. Thank you very much. Great work of you guys.
/wazh -----Original Message----- From: Luke Daley [mailto:[email protected]] Sent: Thursday, March 31, 2011 1:22 AM To: [email protected] Subject: Re: [gradle-user] RE: test run success in eclipse but fail with gradle in command line? On 31/03/2011, at 5:02 AM, Peter Niederwieser wrote: > geb.junit4.GebTest extends TestCase which is a JUnit 3 class. This > means the test class can both be run as a JUnit 3 test and a JUnit 4 > test. Eclipse seems to run it as a JUnit 4 test, and Gradle as a JUnit > 3 test. That's why @RunWith doesn't get picked up when running with > Gradle and execution fails because there is no parameterless constructor. > > I filed a Geb issue for this some time ago and it has already been > fixed for the upcoming 0.6 release of Geb. Meanwhile, if you want to > write JUnit 4 tests, don't use geb.junit4.GebTest. I believe it's only > a convenience class anyway. Peter is correct here, and this has been fixed for the upcoming 0.6 version. In the meantime, you could just copy the following two (fixed) classes into your project and run with that locally, then remove them when 0.6 drops. https://github.com/geb/geb/tree/develop/module/geb-junit4/src/main/groovy/geb/junit4 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
