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

Automatically load required plugins during test #11675

Merged
merged 3 commits into from May 9, 2017

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented May 8, 2017

When a plugin requires another plugin in plugin.json, this will make sure to load the required plugin as well (if it exists in filesystem) when running the tests.

Please note that while this works, there are other bugs in Piwik re requiring plugins and will likely issue PR for it.

FYI: I wanted to use the metadata loader but it this stage DI is not set up yet and it fails when calling eg Piwik::Translate

tsteur added 2 commits May 9, 2017 11:07
When a plugin requires another plugin in `plugin.json`, this will make sure to load the required plugin as well (if it exists in filesystem) when running the tests.
@tsteur tsteur added c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review labels May 8, 2017
@tsteur tsteur added this to the 3.0.4 milestone May 8, 2017
@mattab
Copy link
Member

mattab commented May 9, 2017

This refs "Allow plugins to require other plugins" #4485

@mattab mattab merged commit 51e34b5 into 3.x-dev May 9, 2017
@mattab mattab deleted the loadrequiredpluginintests branch May 9, 2017 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants