Skip to content
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

Skip tests with dependencies that are not installed by default #831

Closed
wants to merge 1 commit into from
Closed

Skip tests with dependencies that are not installed by default #831

wants to merge 1 commit into from

Conversation

rpkamp
Copy link
Contributor

@rpkamp rpkamp commented Dec 4, 2016

I just checked out the repository for the first time, ran phpunit, and got a bunch of fails, one of which was a fatal PHP error that stopped the tests because symfony templating was not installed (PHP Fatal error: Class 'Symfony\Component\Templating\Helper\Helper' not found).
By skipping the tests that require components that are not installed by default at least all the tests run out of the box.
Alternatively the missing dependencies could be added to the dev dependencies but I did not want to be presumptuous and just add them.

@xabbuh
Copy link

xabbuh commented Dec 4, 2016

This is probably related to the fact that the bundle's dependency on FrameworkBundle pulled in a lot of packages in the past. Now that with the release of Symfony 3.2 the FrameworkBundle doesn't pull in the whole world anymore, it's probably the best idea to update the required packages for this package.

@rpkamp
Copy link
Contributor Author

rpkamp commented Dec 4, 2016

Good point. I created an alternative PR to require the components explicitly: #832

@alexwilson
Copy link
Collaborator

This feels like something we should probably fix in the 2.0 branch, and it's probably for the best that the tests fail in other versions

@rpkamp
Copy link
Contributor Author

rpkamp commented Dec 5, 2016

No longer needed now that #832 is merged

@rpkamp rpkamp closed this Dec 5, 2016
@rpkamp rpkamp deleted the skip-tests-missing-dependencies branch December 5, 2016 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants