-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove tests from packages (composer) #8
Comments
Have been reading about this issue for the last few days. It seems there is no standard way to do it. Some authors of composer suggest the use of .gitattributes but in my opinion it is not the best solution. What do you think @ibrahimBeladi ? |
In my opinion, the output (the package) should not contain any tests and the tests should be done by the maintainer(s). If it is possible to selectively get the tests that would be a bonus. But ideally, I would prefer not to have someone's tests on my machine. I am not sure if there are solutions for this, because is is too old now. But, it would not hurt to try. |
I think it can also consider using the Some related PRs are as follows to be referenced: |
For the time being, this will be applied to the framework it self but not the libraries at which it depends on. The thing is that currently, the libraries that the framework depends on are in the folder The framework has its own mechanism to auto load classes. The implementation can be found in the class AutoLoader The auto-loader of the framework will force you to use object oriented approach. One of the things that I don't like about composer is that it has some code which is not fully object oriented in the auto-loader implementation. Will consider the ability to load dependent libraries for the future using composer. |
@usernane, thanks for your reply. IMHO, I think we can provide two approaches about that you mention. We can use the composer to load classes automatically or using customized autoloader without composer to load classes. And it can be convenient for Composer fan to use/enjoy this framework :). |
Exclude tests from the package when install from composer. And move the dependency management to be from composer and not via downloading.
The text was updated successfully, but these errors were encountered: