-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Allow plugins to bundle unit tests files #1673
Comments
I think it would be ideal to implement this using an Ant task running on our Hudson server. |
re: comment:1 That's possible. I'll need to secure the CI environment a bit more than currently (e.g., suhosin, open basedir restriction, etc), and limit integration testing to some pre-approved set of third-party plugins. The build job would iterate through each plugin in the repository:
|
From #2017: WP has some interesting plugins for checking themes and plugins that we can learn from.
Lots of possibilities: we could run a test before activating a plugin, test plugins submitted to the repository, svn commit hook, or via jenkins. |
Test generator: done. Executing a test using |
TBD: do we need different options to generate StandardTest (Unit Test), DB Test, Integration Test? |
Link to documentation: http://developer.piwik.org/guides/plugins#writing-tests-for-your-plugin @diosmosis Feel free to improve the doc. |
…d, added optional option to define type of test
Currently it is not possible for plugins to have tests. plugin developers have to put the tests in the piwik/tests/PHPUnit/* folders. This is not practical because the tests cannot be bundled with the plugin.
Goal: give Piwik developers the ability to bundle tests in their plugins. This will provide community with ability to build plugins with high quality and QA standards.
Tasks:
Out of scope:
The text was updated successfully, but these errors were encountered: