|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Running Unit Tests in EclipseI appear to be seeing that Groovy files that are GroovyTestCase unit
tests can be run individually as JUnit unit tests, but they are not picked up when I try to run packages containing the Groovy files as JUnit tests. Java files containing JUnit tests are picked up just not Groovy files. Does this imply I am doing something wrong or that The Eclipse plugin needs to amend the algorithm for finding unit tests when the user asks for a package to be tested? -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077 |
|
|
Re: Running Unit Tests in Eclipsemy experience is, that this works, but the groovy-plugin
has some problems with auto-compile. so i have to 'right-klick compile-groovy-file' from time to time to make it work. the plugin leaves much space for improvement IMO it completely misses refactorings for instance. hopefully that will change with introduction of the ast-transformations. have a nice weekend ps: i am using the recent snapshot update-site release: http://dist.codehaus.org/groovy/distributions/update/ update-site snapshot: http://dist.codehaus.org/groovy/distributions/updateDev/
|
|
|
Re: Running Unit Tests in EclipseAt 12:37 AM 7/5/2008, you wrote:
>I appear to be seeing that Groovy files that are GroovyTestCase unit >tests can be run individually as JUnit unit tests, but they are not >picked up when I try to run packages containing the Groovy files as >JUnit tests. this seems to work for me when i point junit to the default package in eclipse or to the top level package. it runs the groovy tests in the top level package. pointing junit to a sub-package gets a: 'no tests found with junit 3' thanks --- vice-chair http://ocjug.org/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Running Unit Tests in EclipseOn Sat, 2008-07-05 at 16:43 -0700, Ray Tayek wrote:
> At 12:37 AM 7/5/2008, you wrote: > >I appear to be seeing that Groovy files that are GroovyTestCase unit > >tests can be run individually as JUnit unit tests, but they are not > >picked up when I try to run packages containing the Groovy files as > >JUnit tests. > > this seems to work for me when i point junit to the default package > in eclipse or to the top level package. it runs the groovy tests in > the top level package. I just tried this selecting the project and all 196 tests were found and run (not correctly but that is a separate issue). If I select any lower level other than the Groovy test file itself then only Java tests are found. > pointing junit to a sub-package gets a: 'no tests found with junit 3' I get this for any layer other than the project. Another note: I have a JUnit tab and a GUnit tab, are these different things? -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077 |
|
|
Re: Running Unit Tests in EclipseAt 01:56 AM 7/6/2008, you wrote:
>On Sat, 2008-07-05 at 16:43 -0700, Ray Tayek wrote: > > At 12:37 AM 7/5/2008, you wrote: > > >I appear to be seeing that Groovy files that are GroovyTestCase unit > > >tests can be run individually as JUnit unit tests, but they are not > > >picked up when I try to run packages containing the Groovy files as > > >JUnit tests. > > > > this seems to work for me when i point junit to the default package > > in eclipse or to the top level package. it runs the groovy tests in > > the top level package. that worked because i had a .java test case in there. >I just tried this selecting the project and all 196 tests were found and >run (not correctly but that is a separate issue). If I select any lower >level other than the Groovy test file itself then only Java tests are >found. i get that behaviour also (i had a test suite i removed). > > pointing junit to a sub-package gets a: 'no tests found with junit 3' > >I get this for any layer other than the project. agreed. >Another note: I have a JUnit tab and a GUnit tab, are these different >things? i don't have that tab. thanks --- vice-chair http://ocjug.org/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free Forum Powered by Nabble | Forum Help |