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
UI tests on Travis do not execute UI tests of submodules #9253
Comments
This sounds good to me, but I'm wondering why we didn't do it in the first place, maybe there will be some downside?
@diosmosis what do you think, maybe you remember why we didn't run UI tests of submodule'd plugins in our |
I do not remember why. |
Just gave it a try to remove the But what could cause problems is, that it won't be possible to fix the tests for QueuedTracking or LoginLdap plugin, as they require additional software to be installed and set up. Not sure if we should do that for all core builds then? 🤔 |
I reckon some complications will be that it might be hard to have the UI tests working in the submodule, and the core. Eg if the plugins runs using latest Matomo or so, and the core runs using latest |
Guess that would only work smoothly if we run the plugin builds against latest 4.x-dev instead of latest release. Everything else isn't worth the overhead I think. |
4.x-dev might be sometimes hard when making changes in core and the plugin for example. But I think this does currently not work anyway because the tests run against the max supported piwik. Which be the latest beta. So it be actually an improvement maybe running it against 4.x-dev if I see this right? |
All submodule plugin are now running their tests against |
When executing UI tests on Travis we do not execute the UI tests that are defined in the submodule plugins. On the contrary, we do execute unit, integration and system tests of these plugins. I think we should be consistent and also include UI tests of plugins that are added in
piwik/piwik
as a submodule.When working on these plugins it makes it easier to see if the UI tests of this plugin actually work and when working on Piwik we can see if we break any of these plugins. The ones that are added are some kind of special plugins that are kinda core but we want to provide updates separately etc.
Of course we also have Travis jobs in the plugins that are submodules. The problem is that they run against beta versions of Piwik. This means to make tests work for a plugin we need to release a new beta after each change in Piwik, and then change the
PIWIK_LATEST_STABLE_TEST_TARGET
variable in.travis.yml
of the plugin.I am currently developing the
CustomDimensions
plugin and I cannot let Travis test the UI tests. To test the UI tests inCustomDimensions
Travis we would need to release a new beta version of Piwik. To release a new beta that can be used by this plugin we would need to merge a PR inpiwik/piwik
that includes some changes in Piwik core that are needed to make this plugin work. However, we cannot really merge since we don't know whether the UI tests work etc.This issue is to discuss whether we should include these plugins in UI tests or not. And if want to include them, we should probably remove the
--core
flag in https://github.com/piwik/travis-scripts/blob/ab737e8de918bfc06c1fc5234071f60e3be51a60/travis.sh#L76The text was updated successfully, but these errors were encountered: