-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
matomo-org/developer-documentation
#307Labels
c: Tests & QAFor issues related to automated tests or making it easier to QA & test issues.For issues related to automated tests or making it easier to QA & test issues.
Milestone
Description
I was trying to run the Tests to make sure that my code is working, but I got the following error on starting the tests -
$ ./console tests:run --testsuite unit
Executing command: cd C:\xampp\htdocs\PHPStorm/tests/PHPUnit && C:\xampp\htdocs\PHPStorm/vendor/bin/phpunit --testsuite UnitTestsFatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik_tests.piwiktests_option' doesn't exist' in C:\xampp\htdocs\PHPStorm\libs\Zend\Db\Statement\Pdo.php:228
Stack trace:0 C:\xampp\htdocs\PHPStorm\libs\Zend\Db\Statement\Pdo.php(228): PDOStatement->execute(Array)
1 C:\xampp\htdocs\PHPStorm\libs\Zend\Db\Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
2 C:\xampp\htdocs\PHPStorm\libs\Zend\Db\Adapter\Abstract.php(479): Zend_Db_Statement->execute(Array)
3 C:\xampp\htdocs\PHPStorm\libs\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT option_v...', Array)
4 C:\xampp\htdocs\PHPStorm\core\Db\Adapter\Pdo\Mysql.php(245): Zend_Db_Adapter_Pdo_Abstract->query('SELECT option_v...', Array)
5 C:\xampp\htdocs\PHPStorm\libs\Zend\Db\Adapter\Abstract.php(736): Piwik\Db\Adapter\Pdo\Mysql->query('SELECT option_v...', Array)
6 C:\xampp\htdocs\PHPStorm\core\Db.php(211): Zend_Db_Adapter_Abstract->fetchAll('SELECT option_v...', Arr in C:\xampp\htdocs\PHPStorm\libs\Zend\Db\Statement\Pdo.php on line 234
Apparently, there is more to setting up the database before I can run the tests.
Metadata
Metadata
Assignees
Labels
c: Tests & QAFor issues related to automated tests or making it easier to QA & test issues.For issues related to automated tests or making it easier to QA & test issues.