[development] Error running SimpleTest on new installation

Sookocheff, Kevin Kevin.Sookocheff at cbsa-asfc.gc.ca
Mon Nov 3 17:22:33 UTC 2008


Hi Dave,

This is not the same scenario that I have encountered.  Your patch does
remove the specific error Undefined index: test_id in
_simpletest_batch_finished().  However, I still receive the message "The
tests did not successfully finish" even though _all_ of the individual
tests are listed as passed.  Some of the tests do not set the input
parameters to _simpletest_batch_finished correctly, even though they
report that they have passed.  To reproduce this, I run SimpleTest on
the BootStrap module and always receive a message saying that all
individual tests have passed but still receive a message "The tests did
not successfully finish".

So far, I haven't been able to find any place where the variable
$success is ever set.  I have filed a bug report about this and will
continue to investigate.


Kevin



-----Original Message-----
From: development-bounces at drupal.org
[mailto:development-bounces at drupal.org] On Behalf Of Dave Reid
Sent: October 31, 2008 2:22 PM
To: development at drupal.org
Subject: Re: [development] Error running SimpleTest on new installation

That SimpleTest error happens when the first test fails. Since the test 
didn't complete, it's test_id does not get saved. If more than one tests

pass, a valid test_id is saved. I have an issue report for this bug at 
http://drupal.org/node/325824*.
*
Dave*
*
> That particular error is usually caused by a bug in one of the unit
tests you ran causing simpletest to hiccup.  I've seen it a couple of
times, and it's sometimes sporadic, unfortunately.  It could be a bug in
simpletest itself.  I've not ruled that out yet.
>
> See if you can narrow it down to a single test that's causing the
problem.  If you can establish a pattern (a particular test, more than X
tests, some particular phase of the moon, etc.) then file a bug report
for the appropriate module (which could be simpletest itself).  If you
need more help narrowing it down, stop by #Drupal on IRC.  Simpletest is
high in the mind of most core devs of late, so there's a good chance
you'll find someone who can give you more detailed help tracking down
the problem.
>
> Thank you for helping make Drupal better!
>
> --Larry Garfield
>
> On Thu, 30 Oct 2008 13:16:11 -0400, "Sookocheff, Kevin"
<Kevin.Sookocheff at cbsa-asfc.gc.ca> wrote:
>   
>> Hello,
>>
>> I had checked out a fresh version of Drupal from CVS this morning and
>> each time I run some SimpleTest test cases I receive the following
>> error:
>>
>> Undefined index: test_id in _simpletest_batch_finished() (line 423 of
>> E:\xampp\htdocs\drupal_test\modules\simpletest\simpletest.module).
>>
>> I am new to Drupal development and want to get started by writing
some
>> tests and reviewing patches.  Does anyone have an idea about fixing
the
>> above problem so that I can get started?
>>
>> Thanks,
>> Kevin


More information about the development mailing list