Here's two patches, one for drupal_unit_tests.php and the other for drupal_test_case.php, that add loadtest integration into simpletest. Simpletest will just run as usual when loadtest is not enabled, but when it is the output will have some timing information and the runtime for each test will be recorded to the database (loadtest features, not in the simpletest patches).

Comments

hadsie’s picture

StatusFileSize
new1.14 KB

Here's the second patch

hadsie’s picture

Also, loadtest is dependent on this issue to work properly.

Rok Žlender’s picture

I dont like the idea to hard code loadtest integration into simpletest module. Mayebe with some hook called before and after tests this could also be solved. I will think about this a bit.

hadsie’s picture

Rok,

I think this issue can be marked as won't fix. I think I've come up with a cleaner way of integrating this by inheriting the DrupalTestCase class and overloading the run method in there.

Rok Žlender’s picture

Status: Active » Closed (won't fix)

Since Scott found a way around this. Marking it won't fix.