The Artima Developer Community
Sponsored Link

SuiteRunner Forum
Bug report? Suites with more than 20 test methods in them seem to hang.

5 replies on 1 page. Most recent reply: Mar 4, 2003 8:34 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
Andrew Matthews

Posts: 9
Nickname: taxman
Registered: Feb, 2003

Bug report? Suites with more than 20 test methods in them seem to hang. Posted: Feb 28, 2003 1:48 PM
Reply to this message Reply
Advertisement
This is an oddity that I recently discovered. I looked around in the source code, and I cannot seem to find the root cause of this behavior. Once again, I assume this is a bug.


Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Bug report? Suites with more than 20 test methods in them seem to hang. Posted: Feb 28, 2003 2:36 PM
Reply to this message Reply
Hmm. It definitely sounds like a bug, but the first place I would look is in the 21st test method you wrote. I.e., the last one you wrote before it started hanging. Is there possibly something in there that could be hanging things up?

If not, I wonder if you could share your Suite class with us (or me, if you want to mail me individually) to help me reproduce the problem.

Andrew Matthews

Posts: 9
Nickname: taxman
Registered: Feb, 2003

Re: Bug report? Suites with more than 20 test methods in them seem to hang. Posted: Mar 3, 2003 11:59 AM
Reply to this message Reply
It's not a problem with my test method. I commented out the test method in question, recompiled and tested, and it worked fine. I uncommented it and commented out another method that worked before. I recompiled and tested, and it worked fine.

My 21st test method has as its first line of execution a call to System.out.println. This isn't getting called, even though my Reporter is reporting that the method is beginning execution. I have no clue what's going on.

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Bug report? Suites with more than 20 test methods in them seem to hang. Posted: Mar 3, 2003 5:15 PM
Reply to this message Reply
OK, today I'll try out a Suite that has more than 20 methods. If possible, could you post your unworking Suite to this list? If not, that's OK, but it would help us isolate your problem. If you put it between [ java ] and [ /java ] tags (without the spaces, see the gray box to the right of the text area entitled "Formatting Your Post") , that will make it format nicely.

Andrew Matthews

Posts: 9
Nickname: taxman
Registered: Feb, 2003

Egg on my face Posted: Mar 4, 2003 10:38 AM
Reply to this message Reply
Please disregard this entire post. The 20 test limitation is not a bug in SuiteRunner. I found the root cause in one of our libraries. I sincerely apologize for posting this as a bug.

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Egg on my face Posted: Mar 4, 2003 8:34 PM
Reply to this message Reply
By the way, the 21st method added is not necessarily the first place to look; you really want to look at the 21st method executed, which is probably not the same one.

Flat View: This topic has 5 replies on 1 page
Topic: What to Do When setUp/tearDown Throw Exceptions? Previous Topic   Next Topic Topic: Are SuiteRunner tests tied to Java Methods

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use