latest head TestNG testing broken

View: New views
6 Messages — Rating Filter:   Alert me  

latest head TestNG testing broken

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

and I think this applies to the 0.8 release.

Something has been changed regarding running TestNG tests at the very
last moment before the 0.8 release.  My TestNG tested Java project that
ran all its tests successfully until today now no longer appears to have
any tests:

20:16:20.175 [main] DEBUG o.g.a.tasks.testing.TestClassScanner -
test-class-scan : scanning org/devjavasoft/ads/tests/Heap_Test.class

and all the other equivalents result in no tests being found and run.

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment

Re: latest head TestNG testing broken

by Tom Eyckmans :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



2009/9/28 Russel Winder <russel.winder@...>
and I think this applies to the 0.8 release.

Something has been changed regarding running TestNG tests at the very
last moment before the 0.8 release.  My TestNG tested Java project that
ran all its tests successfully until today now no longer appears to have
any tests:

20:16:20.175 [main] DEBUG o.g.a.tasks.testing.TestClassScanner -
test-class-scan : scanning org/devjavasoft/ads/tests/Heap_Test.class

and all the other equivalents result in no tests being found and run.


I fixed something regarding test listeners for TestNG but I didn't change anything to the TestClassScanner. 
--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                           xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip%3Arussel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


Re: latest head TestNG testing broken

by hdockter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 28, 2009, at 9:21 PM, Russel Winder wrote:

> and I think this applies to the 0.8 release.
>
> Something has been changed regarding running TestNG tests at the very
> last moment before the 0.8 release.  My TestNG tested Java project  
> that
> ran all its tests successfully until today now no longer appears to  
> have
> any tests:
>
> 20:16:20.175 [main] DEBUG o.g.a.tasks.testing.TestClassScanner -
> test-class-scan : scanning org/devjavasoft/ads/tests/Heap_Test.class
>
> and all the other equivalents result in no tests being found and run.

I have applied the following patch today: http://jira.codehaus.org/browse/GRADLE-657 
  (a one liner)

@Tom: Could you check if this might be related to Russel's problem?

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: latest head TestNG testing broken

by Tom Eyckmans :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



2009/9/28 Hans Dockter <mail@...>

On Sep 28, 2009, at 9:21 PM, Russel Winder wrote:

and I think this applies to the 0.8 release.

Something has been changed regarding running TestNG tests at the very
last moment before the 0.8 release.  My TestNG tested Java project that
ran all its tests successfully until today now no longer appears to have
any tests:

20:16:20.175 [main] DEBUG o.g.a.tasks.testing.TestClassScanner -
test-class-scan : scanning org/devjavasoft/ads/tests/Heap_Test.class

and all the other equivalents result in no tests being found and run.

I have applied the following patch today: http://jira.codehaus.org/browse/GRADLE-657 (a one liner)

@Tom: Could you check if this might be related to Russel's problem?
I don't think so, I just checked the history of the TestClassScanner and it propably has something to do with the SourceSet changes, I suspect that the visit(new FileVisitor) method behaves differently than before, I don't know if the SourceSet stuff uses Ant FileSets behind the scenes but with Ant FileSets no includes / excludes result in all files being included, perhaps now it doesn't include anything?

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email




Re: latest head TestNG testing broken

by hdockter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 28, 2009, at 9:21 PM, Russel Winder wrote:

> and I think this applies to the 0.8 release.
>
> Something has been changed regarding running TestNG tests at the very
> last moment before the 0.8 release.  My TestNG tested Java project  
> that
> ran all its tests successfully until today now no longer appears to  
> have
> any tests:
>
> 20:16:20.175 [main] DEBUG o.g.a.tasks.testing.TestClassScanner -
> test-class-scan : scanning org/devjavasoft/ads/tests/Heap_Test.class
>
> and all the other equivalents result in no tests being found and run.

Could you provide a test project to reproduce?

Our testng integration tests are working.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: latest head TestNG testing broken

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-09-28 at 22:09 +0200, Hans Dockter wrote:

> On Sep 28, 2009, at 9:21 PM, Russel Winder wrote:
>
> > and I think this applies to the 0.8 release.
> >
> > Something has been changed regarding running TestNG tests at the very
> > last moment before the 0.8 release.  My TestNG tested Java project  
> > that
> > ran all its tests successfully until today now no longer appears to  
> > have
> > any tests:
> >
> > 20:16:20.175 [main] DEBUG o.g.a.tasks.testing.TestClassScanner -
> > test-class-scan : scanning org/devjavasoft/ads/tests/Heap_Test.class
> >
> > and all the other equivalents result in no tests being found and run.
>
> Could you provide a test project to reproduce?
The project is a Bazaar branch at http://www.russel.org.uk/Bazaar/ADS

I just did "bzr branch http://www.russel.org.uk/Bazaar/ADS ; cd ADS ;
gradle -d test" and the compilation happened fine, but no test
execution.  Overall it took about 20s for the full Gradle run.

> Our testng integration tests are working.

Sadly, there seems to be a gap in the integration tests.

The problem here is probably related to the fact that the action of
collecting the tests succeeds, it just doesn't collect any tests.  So
when the tests are run, the action succeeds but without running any
tests, and there is no HTML created but as there are no test results
this is a successful action.

I am using HEAD not the 0.8 release.

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment