Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
mattab opened this Issue · 2 comments

1 participant

@mattab
Owner

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
Owner

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

@mattab
Owner

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
@mattab mattab self-assigned this
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@mattab mattab Refs #4341 Adding Example integration test with very basic fixture an…
…d expected/* files
ffa853f
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@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 referenced this issue from a commit in sabl0r/piwik
@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
Something went wrong with that request. Please try again.