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

How to automate local tests against multiple dependency versions? #7081

Closed
lezhnev74 opened this issue Feb 6, 2018 · 3 comments
Closed

How to automate local tests against multiple dependency versions? #7081

lezhnev74 opened this issue Feb 6, 2018 · 3 comments
Labels

Comments

@lezhnev74
Copy link

I have an app which must work with a specific package in various versions. I'd like to automatically run local tests against different versions of the package.

How is it done?

I can only think of a manual way:

  • change composer.json
  • run composer update
  • run tests
  • repeat with another version
@stof
Copy link
Contributor

stof commented Feb 6, 2018

Well, I suggest you to write a script automating the different steps you gave here. There is nothing forcing to do such steps manually.

@bizmate
Copy link

bizmate commented Feb 8, 2018

I have an app which must work with a specific package in various versions
So you have this app code pushed to different branches? Then in each branch have the right dependency for the package and automated the tests.

About automation as suggested just instead of

change composer.json
run composer update

simply
composer require vendor/package:$(MY_PACKAGE_VERSION)

@lezhnev74
Copy link
Author

Yes, looks like this is a way to do it.
Since dependencies are cached that should not take too much time to pull another version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants