Unable to run tests from Piwik command prompt windows 7


#1

Hi there,

I tried to run to piwik tests from command prompt. I am using windows 7 OS. PHP 5.5.  I have been unsucccessful in getting the tests to run via CLI.

Before I ran tests, I took git pull, composer update, db update etc. Everything is up-to-date. But when I try console tests:run, I see following error snapshots…


$ console tests:run
Did you know? You can run tests faster by disabling xdebug (if you need xdebug, speed up tests by setting xdebug.coverage_enable=0)
Executing command: cd C:\wamp\www\piwik/tests/PHPUnit && ../../vendor/phpunit/phpunit/phpunit   --testsuite UnitTests
'..' is not recognized as an internal or external command,
operable program or batch file.

Executing command: cd C:\wamp\www\piwik/tests/PHPUnit && ../../vendor/phpunit/phpunit/phpunit   --testsuite IntegrationTests
'..' is not recognized as an internal or external command,
operable program or batch file.

Executing command: cd C:\wamp\www\piwik/tests/PHPUnit && ../../vendor/phpunit/phpunit/phpunit   --testsuite SystemTests
'..' is not recognized as an internal or external command,
operable program or batch file.

If I try other commands like console development:enable, they work correctly including db update from console. What should I do to make the tests run correctly?


#2

Please check Fixing PhpUnit support for windows by ThaDafinser · Pull Request #8694 · matomo-org/piwik · GitHub