Свежайшие Пирожки от CakePHP по-русски

Полнейшее руководство CakePHP 1.2 на русском языке, горячие новости и полезные статьи

Grouping tests

If you want several of your test to run at the same time, you can try creating a test group. Create a file in /app/tests/groups/ and name it something like your_test_group_name.group.php. In this file, extend GroupTest and import test as follows:

Простой текст
  1. <?php
  2. class TryGroupTest extends GroupTest {
  3. var $label = 'try';
  4. function tryGroupTest() {
  5. TestManager::addTestCasesFromDirectory($this, APP_TEST_CASES . DS . 'models');
  6. }
  7. }
  8. ?>

The code above will group all test cases found in the /app/tests/cases/models/ folder. To add an individual file, use TestManager::addTestFile($this, filename).