Skip to content
Extraits de code Groupes Projets
  1. jan. 06, 2018
  2. juin 09, 2017
    • Benaka's avatar
      Fixes to some local testing issues (#11760) · e1dd7122
      Benaka a rédigé
      * Fixing travis-ci/local inconsistencies in AutoSuggestAPITest.php. (userAgent was not correctly set in fixture)
      
      * In CliMulti, ignore zombie processes when parsing ps output.
      
      * Set URL of tracker in ThreeVisitsWithCustomEvents fixture, so test does not depend on _SERVER["HTTP_HOST"] which in turn depends on dynamic INI config value.
      
      * PHPUnit tests should not refer to each other, otherwise the PSR autoloader will be used, and PHPUnit will not load the file itself (resulting in the test not being run).
      
      * Update OneVisitorTwoVisitsTest expected files.
      
      * URL encode attribution date time in fixture since the tracker will not do it itself.
      e1dd7122
  3. août 31, 2016
  4. oct. 05, 2014
  5. sept. 09, 2014
    • mattab's avatar
      fixing few more tests: hide nb_users to make tests pass because for some... · 1ad4c494
      mattab a rédigé
      fixing few more tests: hide nb_users to make tests pass because for some reason the column does appear by default but in the backwardsCompatibilityTest it does not appear there. Also had to manually activate and install plugins in the test case for some reason. Message was:
      ```
      Exception: Failed to update database (errors or warnings found): Array
      (
          [warnings] => Array
              (
              )
      
          [errors] => Array
              (
                  [0] => /home/matt/dev/piwik-master/plugins/CustomAlerts/Updates/0.0.2.php:
      Error trying to execute the query 'ALTER TABLE `alert` CHANGE `enable_mail` `email_me` BOOLEAN NOT NULL'.
      The error was: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik_tests.alert' doesn't exist
              )
      
          [coreError] =>
          [deactivatedPlugins] => Array
              (
                  [0] => CustomAlerts
              )
      
      )
      
      ```
      1ad4c494
  6. sept. 08, 2014
  7. juil. 02, 2013
  8. fév. 10, 2013
  9. oct. 19, 2012
  10. mai 20, 2012
  11. sept. 13, 2011
  12. juil. 13, 2010
    • mattpiwik's avatar
      Refs #396 · 0256a281
      mattpiwik a rédigé
       * updating exit_rate calculation to have nb of pages view as the denominator, rather than number of visits. Complies with WAA Page Exit Ratio (ie. Exit rate) proposal.
      
      git-svn-id: http://dev.piwik.org/svn/trunk@2490 59fd770c-687e-43c8-a1e3-f5a4ff64c105
      0256a281
  13. juil. 06, 2010
    • mattpiwik's avatar
      Fixing bug in Archiving found with this new test suite (max_actions was... · 43460d81
      mattpiwik a rédigé
      Fixing bug in Archiving found with this new test suite (max_actions was incorrectly summed during archiving, rather than max() operation)
      Updating expected file as naming convention changed in previous commit
      Refs #1446
      
      
      git-svn-id: http://dev.piwik.org/svn/trunk@2442 59fd770c-687e-43c8-a1e3-f5a4ff64c105
      43460d81
    • mattpiwik's avatar
      Introducing documented piwik.php PHP Tracking client. · 52ce332c
      mattpiwik a rédigé
      Also adding integration test suite in place.
      
       * Adding new mechanism to trigger known tracking requests, then call all API methods get* and compare XML to the previous 'expected' XML.
       * make sure overwritten config files are not read during tests. Use defaults from global.ini.php.
       * piwik.php Tracker allow calling script to force Datetime and user IP for a specific request. 
       * Wrote 3 main tests
        * wrong tracking requests should not return error and should not record anything 
        * standard one visitor, 2 visits, with page view, download, outlink and goal tracked
        * Added integration test as an example in the ExampleAPI plugin (pretty simple to add testing code)
      TODO 
       * Finish PiwikTracker and show it in UI
       * Show how to use image based tracker in UI
       * Add more tests (multi periods and multi sites) in Main.test.php
       * Fix failing Config.test.php test (when ran via all_tests.php doesn't fail otherwise)
      
      git-svn-id: http://dev.piwik.org/svn/trunk@2429 59fd770c-687e-43c8-a1e3-f5a4ff64c105
      52ce332c
Chargement en cours