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

Closed
mattab opened this Issue Nov 26, 2013 · 2 comments

1 participant

@mattab
Piwik Open Source Analytics member

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
Piwik Open Source Analytics member

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

@mattab
Piwik Open Source Analytics member

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 sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab mattab Refs #4341 Adding Example integration test with very basic fixture an…
…d expected/* files
ffa853f
@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab mattab 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!
c6737b5
@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab mattab Fixes #4341 ec7e277
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment