sonnym / travis-ci-drupal-module-example

Example Drupal module tested using Travis CI
https://drupal.org/project/travis_ci_drupal_module_example
40 stars 90 forks source link

Add complete support for HTTP-based test methods on DrupalWebTestCase #1

Closed iamEAP closed 10 years ago

iamEAP commented 11 years ago

I think very few people use the unit test components of SimpleTest in the Drupal ecosystem. Seems like the Travis config should also, at a minimum, spin up a server so that methods like DrupalWebTestCase::drupalGet() and DrupalWebTestCase::drupalPost() are functional.

Drush provides this capability (but it requires an extra PHP package to do so in PHP 5.3). We also need PDO MySQL, since we're working with a MySQL database.

Naturally, others may want to install Apache with all requirements, or nginx, or try against sqllite / postgres, but this provides a good outline of the bare minimum.

sonnym commented 10 years ago

Looks good, and passes on Travis. Thanks a lot for the contribution!