This might help too:
18:57:14.625 [DEBUG] [org.gradle.api.tasks.testing.Test] Started tests
18:57:14.687 [DEBUG]
[org.gradle.api.internal.tasks.testing.detection.ClassFileExtractionManager]
extracted class
org/springframework/test/context/testng/AbstractTestNGSpringContextTests from
spring-test-3.0.5.RELEASE.jar
18:57:14.703 [DEBUG]
[org.gradle.api.internal.tasks.testing.junit.JUnitDetector] test-class-scan :
failed to scan parent class java/lang/Object, could not find the class file
18:57:14.703 [DEBUG]
[org.gradle.api.internal.tasks.testing.junit.JUnitDetector] test-class-scan :
failed to scan parent class java/lang/Object, could not find the class file
18:57:14.734 [DEBUG] [org.gradle.api.tasks.testing.Test] Finished tests
18:57:14.906 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
+Datatype junitreport2
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
18:57:15.000 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
parsing buildfile
jar:file:/C:/gradle-0.9.2/lib/ant-1.8.1.jar!/org/apache/tools/ant/antlib.xml
with URI =
jar:file:/C:/gradle-0.9.2/lib/ant-1.8.1.jar!/org/apache/tools/ant/antlib.xml
from a zip file
18:57:15.046 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
fileset: Setup scanner in dir C:\myapp\parent\myapp-logging\build\test-results
with patternSet{ includes: [TEST-*.xml] excludes: [] }
18:57:15.062 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
Setting project property:
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer0 ->
C:\DOCUME~1\NCHAUD~1.PFI\LOCALS~1\Temp\null1416610959
18:57:15.062 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
[ant:junitreport2] Using class
org.apache.tools.ant.taskdefs.optional.TraXLiaison
18:57:15.078 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
[ant:junitreport2] In file
C:\myapp\parent\myapp-logging\build\test-results\TESTS-TestSuites.xml time:
1296691035062
18:57:15.109 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
[ant:junitreport2] Out file
C:\DOCUME~1\NCHAUD~1.PFI\LOCALS~1\Temp\null1416610959 time: 0
18:57:15.109 [DEBUG] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
[ant:junitreport2] Style file null time: 1296342855000
18:57:15.109 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
[ant:junitreport2] Processing
C:\myapp\parent\myapp-logging\build\test-results\TESTS-TestSuites.xml to
C:\DOCUME~1\NCHAUD~1.PFI\LOCALS~1\Temp\null1416610959
18:57:15.109 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
[ant:junitreport2] Loading stylesheet
jar:file:/C:/gradle-0.9.2/lib/plugins/ant-junit-1.8.1.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
18:57:15.375 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter]
[ant:junitreport2] Transform time: 313ms
-----Original Message-----
From: Neil Chaudhuri [mailto:[email protected]]
Sent: Wednesday, February 02, 2011 7:05 PM
To: '[email protected]'
Subject: RE: [gradle-user] Gradle Not Finding My Tests
Hey Rene,
I am using TestNG 5.14.6. No XML files to define test suites--just classes with
@Test methods.
As for the details, I was afraid you'd ask for that since I got a ton. Below is
an excerpt. Let me know if there is some piece I should look provide.
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Non matching
revision detected when sorting. com.beust#jcommander depends on
org.testng#testng;5.14.2, doesn't match org.testng#testng;5.14.6
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort done for :
com.beust#jcommander;1.12
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort done for :
org.testng#testng;5.14.6
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort
dependencies of : org.mockito#mockito-core;1.8.0 / Number of dependencies = 2
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort
dependencies of : org.hamcrest#hamcrest-core;1.1 / Number of dependencies = 3
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Non matching
revision detected when sorting. org.hamcrest#hamcrest-core depends on
junit#junit;4.0, doesn't match junit#junit;3.8.1
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort done for :
org.hamcrest#hamcrest-core;1.1
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort
dependencies of : org.objenesis#objenesis;1.0 / Number of dependencies = 0
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort done for :
org.objenesis#objenesis;1.0
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort done for :
org.mockito#mockito-core;1.8.0
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort
dependencies of : org.springframework#spring-test;3.0.5.RELEASE / Number of
dependencies = 24
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Non matching
revision detected when sorting. org.springframework#spring-test depends on
org.aspectj#aspectjweaver;1.6.8, doesn't match org.aspectj#aspectjweaver;1.6.4
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Non matching
revision detected when sorting. org.springframework#spring-test depends on
junit#junit;4.7, doesn't match junit#junit;3.8.1
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : org.springframework#spring-beans;3.0.5.RELEASE
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : org.springframework#spring-context;3.0.5.RELEASE
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : org.springframework#spring-core;3.0.5.RELEASE
18:57:13.078 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Non matching
revision detected when sorting. org.springframework#spring-test depends on
org.testng#testng;5.10, doesn't match org.testng#testng;5.14.6
18:57:13.093 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort done for :
org.springframework#spring-test;3.0.5.RELEASE
18:57:13.093 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : junit#junit;3.8.1
18:57:13.093 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : org.beanshell#bsh;2.0b4
18:57:13.093 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : com.google.inject#guice;2.0
18:57:13.093 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : com.beust#jcommander;1.12
18:57:13.093 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : org.hamcrest#hamcrest-core;1.1
18:57:13.093 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Module
descriptor is processed : org.objenesis#objenesis;1.0
18:57:13.093 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] resolved ivy
file produced in C:\Documents and
Settings\nchaudhuri\.gradle\cache\resolved-com.myapp-my-logging-2.1-SNAPSHOT.xml
18:57:13.093 [INFO]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] :: resolution
report :: resolve 1109ms :: artifacts dl 0ms
18:57:13.093 [INFO]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
---------------------------------------------------------------------
18:57:13.140 [INFO]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] |
| modules || artifacts |
18:57:13.140 [INFO]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] |
conf | number| search|dwnlded|evicted|| number|dwnlded|
18:57:13.140 [INFO]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
---------------------------------------------------------------------
18:57:13.140 [INFO]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] |
testCompile | 21 | 0 | 0 | 0 || 0 | 0 |
18:57:13.140 [INFO]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper]
---------------------------------------------------------------------
18:57:13.140 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Nbr of module
to sort : 21
18:57:13.140 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort
dependencies of : org.springframework#spring-beans;3.0.5.RELEASE / Number of
dependencies = 7
18:57:13.140 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort
dependencies of : org.springframework#spring-core;3.0.5.RELEASE / Number of
dependencies = 10
18:57:13.140 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort
dependencies of : org.springframework#spring-asm;3.0.5.RELEASE / Number of
dependencies = 0
18:57:13.140 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort done for :
org.springframework#spring-asm;3.0.5.RELEASE
18:57:13.140 [DEBUG]
[org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] Sort
dependencies of : commons-logging#commons-logging;1.1.1 / Number of
dependencies = 5
-----Original Message-----
From: Rene Groeschke [mailto:[email protected]]
Sent: Wednesday, February 02, 2011 6:58 PM
To: [email protected]
Subject: Re: [gradle-user] Gradle Not Finding My Tests
Hi Neil,
another question,
What kind of tests are located in your src/test/java directory?
framework (junit or testng) and version?
regards,
René
Am 03.02.11 00:49, schrieb Neil Chaudhuri:
> I am an experienced Java developer and Maven user, and I am evaluating Gradle
> for a possible transition. So far I have my multi-module project building
> nicely and quite cleanly, but when I run "gradle test," Gradle isn't finding
> any of my test classes. My layout follows the Maven, and I thought Gradle,
> conventions precisely:
>
> --myproj
> ----build.gradle
> ----src
> ----main
> ----java
> ----resources
> ----test
> ----java
> ---------------Test source all here
> ----resources
>
> After studying the manual, I figured that the testing sourceSet defaulted to
> what I have above, but perhaps I was wrong. Any insight into whatever silly
> thing I have misconfigured is appreciated.
>
> Thanks.
>
>
>
--
------------------------------------
Rene Groeschke
[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email