Opened 4 years ago

Closed 4 years ago

#1327 closed Bug (fixed)

Write Tracker, Archiving and API integration tests.

Reported by: matt Owned by:
Priority: major Milestone: Piwik 0.9.9 - Stable release
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by matt)

This ticket is a placeholder for the missing unit and integrations tests in Piwik. See existing tests in trunk.

  • core/Tracker/* Some code is being unit tested, but no test cover the full interactions and code path, eg. tracking a page, tracking a goal, setting a custom page name, etc.
  • Archiving. Archiving is not unit tested at the moment. The cheaper approach might be to test directly the data returned by APIs in a "black box" fashion, ie. replay "golden" logs to the tracker script, and check that we get expected API results. Each test would contain a small gold log testing a specific code path, as well as the expected reports from this log (visits, list of pages, list of referers, etc.)

Change History (1)

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

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from Missing unit tests and integration tests to Write Tracker, Archiving and API integration tests.

Fixed except for Webtest the auto updater. lowering scope of ticket

Note: See TracTickets for help on using tickets.