What possibilities are there to run unit tests with my Yii application?
So far, I have been testing them this way:
Open command prompt
> cd C:\WHEREVER MY APP IS\protected\tests
> phpunit unit/TestingTest.php
Now, I was wondering if there is another way. Im new to the testing world so to speak, but it seems to me that there must be a better way than running one by one all tests. Thanks for any tips, im sure the question is quite dumb! But maybe it turns out to be helpful to someone else out there.
EDIT (based on @David Harkness comment) Ok, so now I know that when i do this
phpunit C:\WHEREVER MY APP IS\protected\tests\unit
All the tests within my TestingTest.php file are execute. My problem now is that within that unit folder, I have TWO files, TestingTest.php and TestingTest2.php Testing2Test.php. Only the tests within the first one are executed. Any ideas?
phpunitin that directory without specifying a file? That's what I do for non-Yii-based projects, and I cannot imagine it would be any different with Yii.