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

Console command to generate unit tests or integration tests for a Plugin #4341

Closed
mattab opened this issue Nov 26, 2013 · 2 comments
Closed
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Nov 26, 2013

To make it easier for developers who like to write tests, we have created a console command tool that generates tests skeletons for plugins.

Let's augment this tool so it can also generates Integration tests for Plugins, including the fixtures.

With this tests generator tool, developers will be more likely to create tests for their plugins, which will result in improved Plugins quality overall.

You can generate tests with :

$ ./console tests:generate

You can the run tests for any plugin (here ExamplePlugin) with:

$ ./console tests:run ExamplePlugin

@mattab
Copy link
Member Author

mattab commented Nov 26, 2013

In ffa853f: Refs #4341 Adding Example integration test with very basic fixture and expected/* files

@mattab
Copy link
Member Author

mattab commented Nov 26, 2013

In c6737b5: Fixes #4341 Updating command to generate integration test, including its fixture and expected/ processed/ folders. This will make it trivial to add skeleton for integration tests in plugins, FTW!

@mattab mattab added this to the 2.0 - Piwik 2.0 milestone Jul 8, 2014
@mattab mattab self-assigned this Jul 8, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
…including its fixture and expected/ processed/ folders. This will make it trivial to add skeleton for integration tests in plugins, FTW!
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

1 participant