Ticket #858: Piwik - running all tests.html

File Piwik - running all tests.html, 20.2 KB (added by Ecco, 9 months ago)

Running of the test-suite on the machine I'm having this issue on

Line 
1
2<h2>Piwik unit tests</h2> 
3<p>Some of the tests require a database access. The database used for tests is different from your normal Piwik database.
4You may need to create this database ; you can edit the settings for the unit tests database access in your config file
5/config/global.ini.php</p>
6<p><b>The database used in your tests is called "piwik_tests". Create it if necessary.</b></p>
7<p><a href='core'>Run the tests by module</a></p>
8<hr>
9
10<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
11<head>
12<title>Piwik - running all tests</title>
13<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
14<style type="text/css">
15.fail { background-color: inherit; color: red; }.pass { background-color: inherit; color: green; } pre { background-color: lightgray; color: inherit; }
16</style>
17</head>
18<body>
19<h1>Piwik - running all tests</h1>
20The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br><span class="fail">Exception</span>: ../tests/core/API/DocumentationGenerator.test.php -&gt; Test_Piwik_API_DocumentationGenerator -&gt; test_callableApiMethods_doNotFail -&gt; <strong>Unexpected exception of type [Zend_Db_Statement_Exception] with message [SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.piwiktests_site' doesn't exist] in [/var/www/piwik/libs/Zend/Db/Statement/Pdo.php line 227]</strong><br />
21<span class="fail">Exception</span>: ../tests/core/Date.test.php -&gt; Test_Piwik_Date -&gt; test_today -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
22<span class="fail">Fail</span>: ../tests/core/Date.test.php -&gt; Test_Piwik_Date -&gt; test_yesterday -&gt; Equal expectation fails as [Boolean: false] does not match [Integer: 1246921200] at [/var/www/piwik/tests/core/Date.test.php line 37]<br />
235e1b126475b83c837305d3dd6cde107b<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_getId -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
24<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_getLabel -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
25<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_isFinished_today -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
26<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_isFinished_yesterday -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
27<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_isFinished_tomorrow -&gt; <strong>Unexpected exception of type [Exception] with message [Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)] in [/var/www/piwik/core/Date.php line 39]</strong><br />
28<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_isFinished_31stfeb -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
29<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_getDateStart1 -&gt; Equal expectation fails at character 0 with [0000-03-03] and [2007-03-03] at [/var/www/piwik/tests/core/Period.test.php line 104]<br />
30<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_getDateStart2 -&gt; Equal expectation fails at character 0 with [0000-01-03] and [2007-01-03] at [/var/www/piwik/tests/core/Period.test.php line 120]<br />
31<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_getDateStart3 -&gt; Equal expectation fails at character 0 with [0000-12-31] and [2007-12-31] at [/var/www/piwik/tests/core/Period.test.php line 136]<br />
32<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_getDateEnd1 -&gt; Equal expectation fails at character 0 with [0000-03-03] and [2007-03-03] at [/var/www/piwik/tests/core/Period.test.php line 153]<br />
33<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_getDateEnd2 -&gt; Equal expectation fails at character 0 with [0000-04-15] and [2007-04-15] at [/var/www/piwik/tests/core/Period.test.php line 167]<br />
34<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_day_getDateEnd3 -&gt; Equal expectation fails at character 0 with [0000-12-31] and [2007-12-31] at [/var/www/piwik/tests/core/Period.test.php line 180]<br />
35<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_Dec -&gt; Equal expectation fails with member [0] at character 0 with [0000-12-01] and [2006-12-01] at [/var/www/piwik/tests/core/Period.test.php line 225]<br />
36<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_Dec -&gt; Equal expectation fails as [Boolean: false] does not match [Boolean: true] at [/var/www/piwik/tests/core/Period.test.php line 227]<br />
37<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_FebLeap -&gt; Equal expectation fails with member [0] at character 0 with [0000-02-01] and [2024-02-01] at [/var/www/piwik/tests/core/Period.test.php line 263]<br />
38<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_FebLeap -&gt; Equal expectation fails as [Boolean: true] does not match [Boolean: false] at [/var/www/piwik/tests/core/Period.test.php line 265]<br />
39<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_FebNonLeap -&gt; Equal expectation fails as key list [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28] does not match key list [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27] at [/var/www/piwik/tests/core/Period.test.php line 300]<br />
40<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_FebNonLeap -&gt; Equal expectation fails because [Integer: 29] differs from [Integer: 28] by 1 at [/var/www/piwik/tests/core/Period.test.php line 301]<br />
41<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_FebNonLeap -&gt; Equal expectation fails as [Boolean: true] does not match [Boolean: false] at [/var/www/piwik/tests/core/Period.test.php line 302]<br />
42<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_Jan -&gt; Equal expectation fails with member [0] at character 0 with [0000-01-01] and [2007-01-01] at [/var/www/piwik/tests/core/Period.test.php line 340]<br />
43<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_DSTChangeMarch -&gt; Equal expectation fails with member [0] at character 0 with [0000-03-01] and [2007-03-01] at [/var/www/piwik/tests/core/Period.test.php line 381]<br />
44<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_month_DSTChangeOct -&gt; Equal expectation fails with member [0] at character 0 with [0000-10-01] and [2017-10-01] at [/var/www/piwik/tests/core/Period.test.php line 420]<br />
45<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_Between2years -&gt; Equal expectation fails with member [0] at character 0 with [0000-12-26] and [2005-12-26] at [/var/www/piwik/tests/core/Period.test.php line 447]<br />
46<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_Between2years -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
47<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_Between2month -&gt; Equal expectation fails with member [0] at character 0 with [0000-05-29] and [2006-05-29] at [/var/www/piwik/tests/core/Period.test.php line 463]<br />
48<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_Between2month -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
49<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_febLeapyear -&gt; Equal expectation fails with member [0] at character 0 with [0000-02-27] and [2023-02-27] at [/var/www/piwik/tests/core/Period.test.php line 480]<br />
50<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_febLeapyear -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
51<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_febnonLeapyear -&gt; Equal expectation fails with member [0] at character 0 with [0000-02-26] and [2024-02-26] at [/var/www/piwik/tests/core/Period.test.php line 501]<br />
52<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_febnonLeapyear -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
53<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_middleofmonth -&gt; Equal expectation fails with member [0] at character 0 with [0000-10-07] and [2024-10-07] at [/var/www/piwik/tests/core/Period.test.php line 522]<br />
54<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_week_middleofmonth -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
55<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_year_normalcase -&gt; <strong>Unexpected exception of type [Exception] with message [Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)] in [/var/www/piwik/core/Date.php line 39]</strong><br />
56<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_year_pastAndWrongdate -&gt; <strong>Unexpected exception of type [Exception] with message [Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)] in [/var/www/piwik/core/Date.php line 39]</strong><br />
57<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_today -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
58<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_2days -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
59<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_5days -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
60<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_previous3days -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
61<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_comma1 -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
62<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_comma2 -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
63<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_weekcomma1 -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
64<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_yearcomma1 -&gt; <strong>Unexpected exception of type [Exception] with message [Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)] in [/var/www/piwik/core/Date.php line 39]</strong><br />
65<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_monthcomma1 -&gt; Equal expectation fails as [Boolean: false] does not match [Boolean: true] at [/var/www/piwik/tests/core/Period.test.php line 854]<br />
66<span class="fail">Fail</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_monthcomma1 -&gt; Equal expectation fails with member [0] with member [0] at character 0 with [0000-12-01] and [2006-12-01] at [/var/www/piwik/tests/core/Period.test.php line 855]<br />
67<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_week -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
68<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_week_last1 -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
69<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_month -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
70<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_month_last1 -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
71<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_previousmonth -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
72<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_year -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
73<span class="fail">Exception</span>: ../tests/core/Period.test.php -&gt; Test_Piwik_Period -&gt; test_range_year_last1 -&gt; <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br />
74The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br>The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br><span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -&gt; Test_Piwik_TablePartitioning -&gt; test_noTable -&gt; piwiktests_archive_numeric_2000_09 !==array (
75  0 =&gt; 'piwiktests_user',
76  1 =&gt; 'piwiktests_access',
77  2 =&gt; 'piwiktests_site',
78  3 =&gt; 'piwiktests_site_url',
79  4 =&gt; 'piwiktests_goal',
80  5 =&gt; 'piwiktests_logger_message',
81  6 =&gt; 'piwiktests_logger_api_call',
82  7 =&gt; 'piwiktests_logger_error',
83  8 =&gt; 'piwiktests_logger_exception',
84  9 =&gt; 'piwiktests_log_action',
85  10 =&gt; 'piwiktests_log_visit',
86  11 =&gt; 'piwiktests_log_conversion',
87  12 =&gt; 'piwiktests_log_link_visit_action',
88  13 =&gt; 'piwiktests_log_profiling',
89  14 =&gt; 'piwiktests_option',
90  15 =&gt; 'piwiktests_archive_numeric_0000_09',
91) at [/var/www/piwik/tests/core/TablePartitioning.test.php line 49]<br />
92<span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -&gt; Test_Piwik_TablePartitioning -&gt; test_noTable -&gt; Equal expectation fails at character 27 with [piwiktests_archive_numeric_2000_09] and [piwiktests_archive_numeric_0000_09] at [/var/www/piwik/tests/core/TablePartitioning.test.php line 51]<br />
93<span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -&gt; Test_Piwik_TablePartitioning -&gt; test_monthlyPartition -&gt;  at [/var/www/piwik/tests/core/TablePartitioning.test.php line 69]<br />
94<span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -&gt; Test_Piwik_TablePartitioning -&gt; test_monthlyPartition -&gt; Equal expectation fails at character 27 with [piwiktests_archive_numeric_2000_09] and [piwiktests_archive_numeric_0000_09] at [/var/www/piwik/tests/core/TablePartitioning.test.php line 71]<br />
95<span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -&gt; Test_Piwik_TablePartitioning -&gt; test_dailyPartition -&gt;  at [/var/www/piwik/tests/core/TablePartitioning.test.php line 89]<br />
96<span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -&gt; Test_Piwik_TablePartitioning -&gt; test_dailyPartition -&gt; Equal expectation fails at character 27 with [piwiktests_archive_numeric_2000_09_10] and [piwiktests_archive_numeric_0000_09_10] at [/var/www/piwik/tests/core/TablePartitioning.test.php line 91]<br />
97The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br><br>
98Piwik_Url::getCurrentQueryStringWithParametersModified() <br>
99Piwik_Url::getCurrentUrl() http://box.briefcard.net/logs2/tests/all_tests.php<br>
100Piwik_Url::getCurrentUrlWithoutQueryString() http://box.briefcard.net/logs2/tests/all_tests.php<br>
101Piwik_Url::getCurrentUrlWithoutFileName() http://box.briefcard.net/logs2/tests/<br>
102Piwik_Url::getCurrentScriptName() /logs2/tests/all_tests.php<br>
103Piwik_Url::getCurrentScriptPath() /logs2/tests/<br>
104Piwik_Url::getCurrentHost() http://box.briefcard.net<br>
105Piwik_Url::getCurrentQueryString() <br>
106Piwik_Url::getArrayFromCurrentQueryString() array(0) {
107}
108The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br><div style="padding: 8px; margin-top: 1em; background-color: red; color: white;">26/27 test cases complete:
109<strong>697</strong> passes, <strong>30</strong> fails and <strong>30</strong> exceptions.</div>
110</body>
111</html>
112Time elapsed: 13.266s<br>Memory delta: 1.3 M