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:
Простой текст<?phpclass TryGroupTest extends GroupTest {var $label = 'try';function tryGroupTest() {TestManager::addTestCasesFromDirectory($this, APP_TEST_CASES . DS . 'models');}}?>
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).


Коментарии:
Добавить коментарий