Opened 5 years ago

Closed 5 years ago

#540 closed Bug (fixed)

Plugins could define unit tests in plugins/PLUGIN/tests

Reported by: matt Owned by:
Priority: major Milestone: Piwik 0.4.4
Component: Core Keywords:
Cc: Sensitive: no

Description

Plugins developers good practise involves writing and running unit tests. To do so, Piwik plugins developers should write unit tests using the existing testing framework in place in Piwik.

The objective is to update the piwik/tests/* code so that all tests in plugins/*/tests/*.php is picked up by the testing framework.
Two requirements:

  • going to plugins/*/tests/example.php should run the unit test directly
  • going to tests/all_tests.php and the tests in plugins should be automatically ran

Change History (3)

comment:1 Changed 5 years ago by matt (mattab)

  • Milestone changed from 4- Stable release to 2 - Piwik 0.8 - A Web Analytics platform
  • Sensitive unset

comment:2 Changed 5 years ago by vipsoft (robocoder)

  • Milestone changed from 2 - Piwik 0.8 - A Web Analytics platform to 1 - Piwik 0.4.4

comment:3 Changed 5 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

fixed in [1444]

Note: See TracTickets for help on using tickets.