DBTNG Simpletest
Categories
Component ID
1825990
Component name
DBTNG Simpletest
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module let you run a (trimmed) Drupal core database_test.test and schema.test with original version of SimpleTest framework in install-less style during database driver development.
Assume you are going to develop a new database driver for Drupal 7+ PDO database compatibility layer. You hope to run database_test.test and schema.test during development in order to ensure the code quality, but Drupal require you to first successfully install it (at least minimum profile) before running core simpletest cases... What a Chick or the egg dilemma! What can we do for it?
How it works
- SimpleTest framework in original version
- Trimmed version of Drupal core libraries, so just enough to fire up the database abstraction layer
- Trimmed version of drupal_web_test_case.php, so just enough to wrap the database_test.test and schema.test for running with SimpleTest framework
- Trimmed version of database_test.test and schema.test, so only cases that MySQL can also running under install-less style
Installation
- Download the archive, and extract it under your sites/all/modules, e.g.
- sites/all/modules/dbtng_simepletest
- Download the SimpleTest framework archive, and extract it under your sites/all/libraries, e.g.
- sites/all/libraries/simpletest
- Run trimmed schema.test from browser, e.g.
- Run trimmed database_test.test from browser, e.g.
- (TODO: prepare a clean database?)
- (TODO: prepare a settings.php for testing?)