Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 59951 invoked from network); 10 Mar 2008 16:51:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 16:51:25 -0000 Received: (qmail 24268 invoked by uid 500); 10 Mar 2008 16:51:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 24243 invoked by uid 500); 10 Mar 2008 16:51:21 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 24234 invoked by uid 99); 10 Mar 2008 16:51:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 09:51:21 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [68.142.198.204] (HELO smtp105.sbc.mail.mud.yahoo.com) (68.142.198.204) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Mar 2008 16:50:44 +0000 Received: (qmail 64473 invoked from network); 10 Mar 2008 16:50:51 -0000 Received: from unknown (HELO ?192.168.254.144?) (ddebrunner@sbcglobal.net@67.121.146.140 with plain) by smtp105.sbc.mail.mud.yahoo.com with SMTP; 10 Mar 2008 16:50:50 -0000 X-Yahoo-Newman-Property: ymail-3 Message-ID: <47D566EA.3020805@apache.org> Date: Mon, 10 Mar 2008 09:50:50 -0700 From: Daniel John Debrunner User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Junit hang References: <47D5645C.9030604@sun.com> In-Reply-To: <47D5645C.9030604@sun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Rick Hillegas wrote: > I would appreciate people's advice about how to track down a hang in the > Junit tests. I have added a new test case to TableFunctionTest. When I > execute the test standalone, it runs fine. When I execute the > surrounding suite, everything succeeds also. However, when I run the > full set of junit tests, the run hangs in a later suite. I tried > increasing the memory given to the testrun, but this does not fix the > problem. I would appreciate: > > 1) advice about how to instrument the test run so that I know which test > case I'm hanging in Use any test runner apart from the textui one, that one is really the most basic with little helpful information. The swingui one indicates which test is running and shows which have passed or failed so far. Similar for the junit runner in eclipse. Also now suites.All can be run using ant, via the junit-single target. I haven't tried the latter but running through ant retains a lot of information. > 2) random theories which may occur to you > > This is how I run the full suite: > > java -Xmx600m > -DderbyTesting.oldReleasePath=/Users/rh161140/derby/upgradeReleases > junit.textui.TestRunner org.apache.derbyTesting.functionTests.suites.All Dan.