-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to run tests. #11
Comments
To run Unit test, you just have to run "git submodule update --init" before. Symfony is loaded as a submodule (that was done before composer) Then you have to run: phing prepare phpunit The error you have may mean that there was an error compiling the TestService Definition |
Ok,
Any idea how to overcome this? |
Is your Thrift binary located in "/usr/local/bin/" directory ? |
This is default installation path on ubuntu:
|
That's the point. Maybe just create a symlink and it will work |
Ok, that trick helped. I don't like it though. It's probably better to avoid fixed paths even in tests. I have got another error from phpunit:
Are these messages really localized? If so, could we make two separate assertions:
|
I'm closing this issue, we can now use phpunit to test project without phing... Feel free to reopen if needed :) |
I've tried to run phpunit tests.
First I couldn't run just the
phpunit
, which is usually just enough: it couldn't find the file forrequire_once $_SERVER['SYMFONY'].'/Symfony/Component/ClassLoader/UniversalClassLoader.php';
.Then I found the
build.xml
file and run it:Am I still missing something? How it's supposed to compile the models prior to run tests?
The text was updated successfully, but these errors were encountered: