Heads up with Drupal 7 tests

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Garrett Albright's picture

A heads-up to my fellow developers. I ran into this problem on Lighty, but it probably is going to occur on all non-Apache server daemons, so I'm cross-posting this to the Nginx and IIS groups too.

I'm starting to get serious about D7 development. For the last couple days, though, I was pulling my hair out trying to figure out why some tests related to paths weren't testing - specifically the tests under "Paths" > "Path alias functionality." These are just the tests relevant to what I'm trying to fix, so it was rather frustrating that I couldn't get them to pass even on a virgin CVS pull and database, even though they pass just fine on Drupal's testing bots. Gradually, I began going over the variables between Drupal's configuration and mine, until just tonight I finally stopped to consider - oh, dammit - the web server.

Though I'm using my Lua script to do clean URLs, I decided to try disabling clean URLs and running the tests again - perhaps Drupal's tests were expecting things to happen in an Apache-specific way. Sure enough, the tests then passed. Glory be!

Experimenting, though, I found that there appear to be many other tests which don't pass on Lighty. Indeed, when I try to run the full test suite, the system grinds through the first few tests (reporting many failures), then the Batch API process hangs - the browser stops fetching new updates and the progress bar hangs. Again, since these tests pass on the (presumably) Apache-powered test bots, I can only assume that Lighty is the difference.

So are these tests failing for everyone, or is it just you? Looks like odds are that it's just you - or rather you and everyone else who's stubborn about not using Apache.

Could any of the folks running on Nginx or IIS try running D7's tests and let us know how they turn out? If you're afraid of CVS, you can grab an alpha release tarball here.

Comments

I tried the alpha3 and I

brianmercer's picture

I tried the alpha3 and I can't install without an error and all of the tests give an error and refuse to run. That's with apache or nginx. I am using PHP 5.3.2. Not sure what the problem is yet.

I still can't get the tests

brianmercer's picture

I still can't get the tests to run with the 7.x-dev but I messed with my nginx conf files. It looks like they fixed some quirks from d6. For example, this no longer causes a 404: http://drupal.org/index.php?q=/

They changed the clean url rewrite in .htaccess from this in d6: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] to this in d7: RewriteRule ^ index.php [L]

I was able to simplify my nginx config so that it doesn't requires any rewrites. Definitely some improvements in there.

Sorry, I kinda lost track on

yhager's picture

Sorry, I kinda lost track on how to run those tests. I have nginx set up both on PHP 5.2 and 5.3.
I tested install of D7 on PHP 5.2 and it went without a flaw.
How do I run those tests?

Enable the "Testing" module,

Garrett Albright's picture

Enable the "Testing" module, then go to Configuration > Development > Testing.