Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for piwik/searchengine-and-social-list#14 for Japanese search engines and keywords #10440

Merged
merged 1 commit into from Sep 18, 2016

Conversation

piwikjapan
Copy link

Add tests for matomo-org/searchengine-and-social-list#14
Use kanji strings instead of just 'Piwik'.

Use kanji strings instead of just 'Piwik'.
@tsteur
Copy link
Member

tsteur commented Aug 31, 2016

Thank you @piwikjapan . It looks like some tests are failing now see https://travis-ci.org/piwik/piwik/jobs/154982100 . Can you have a look? Is it maybe a bug in Piwik?

You can try to run the tests locally by executing ./console tests:run unit within Piwik directory

@tsteur tsteur added the Needs Review PRs that need a code review label Aug 31, 2016
@tsteur tsteur changed the base branch from master to 2.x-dev September 1, 2016 06:37
@piwikjapan
Copy link
Author

piwikjapan commented Sep 5, 2016

@mattab said on #10394:

try running composer update piwik/piwik/searchengine-and-social-list in your branch and push the updated composer.lock to the pull request, this may fix your issue?

so I tried.

Locally by excusing below:
./console tests:run ./plugins/Referrers/tests/Unit/SearchEngineTest.php:

[yamachan@piwik piwik]$ ./console tests:run ./plugins/Referrers/tests/Unit/SearchEngineTest.php
Executing command: cd /home/yamachan/piwik/tests/PHPUnit && /home/yamachan/piwik/vendor/bin/phpunit   ../.././plugins/Referrers/tests/Unit/SearchEngineTest.php
PHPUnit 4.8.26 by Sebastian Bergmann and contributors.

Runtime:        PHP 5.4.16
Configuration:  /home/yamachan/piwik/tests/PHPUnit/phpunit.xml.dist

.............................................................   61 / 1290 (  4%)
.............................................................  122 / 1290 (  9%)
.............................................................  183 / 1290 ( 14%)
.............................................................  244 / 1290 ( 18%)
.............................................................  305 / 1290 ( 23%)
.............................................................  366 / 1290 ( 28%)
.............................................................  427 / 1290 ( 33%)
.............................................................  488 / 1290 ( 37%)
.............................................................  549 / 1290 ( 42%)
.............................................................  610 / 1290 ( 47%)
.............................................................  671 / 1290 ( 52%)
.....................................F....................F..  732 / 1290 ( 56%)
.............................................................  793 / 1290 ( 61%)
.............................................................  854 / 1290 ( 66%)
.............................................................  915 / 1290 ( 70%)
.............................................................  976 / 1290 ( 75%)
............................................................. 1037 / 1290 ( 80%)
..F.......................................................... 1098 / 1290 ( 85%)
.................................F........................... 1159 / 1290 ( 89%)
............................................................. 1220 / 1290 ( 94%)
............................................................. 1281 / 1290 ( 99%)
.........

Time: 1.93 seconds, Memory: 14.50MB

There were 4 failures:

1) Piwik\Plugins\Referrers\tests\SearchEngineTest::testMissingSearchEngineIcons with data set #1 ('www.118700.se', array(array('q'), 'sok.aspx?q={k}', '118 700'))
www.118700.se
Failed asserting that false is true.

/home/yamachan/piwik/plugins/Referrers/tests/Unit/SearchEngineTest.php:144

2) Piwik\Plugins\Referrers\tests\SearchEngineTest::testMissingSearchEngineIcons with data set #22 ('www.allaverksamheter.se', array(array('What'), 'SearchResult.aspx?What={k}', 'Allaverksamheter'))
www.allaverksamheter.se
Failed asserting that false is true.

/home/yamachan/piwik/plugins/Referrers/tests/Unit/SearchEngineTest.php:144

3) Piwik\Plugins\Referrers\tests\SearchEngineTest::testMissingSearchEngineIcons with data set #332 ('www.isodelen.se', array(array('Keywords'), 'sokresultat?Keywords={k}', 'Isodelen'))
www.isodelen.se
Failed asserting that false is true.

/home/yamachan/piwik/plugins/Referrers/tests/Unit/SearchEngineTest.php:144

4) Piwik\Plugins\Referrers\tests\SearchEngineTest::testMissingSearchEngineIcons with data set #424 ('www.riksdelen.se', array(array('What'), 'SearchResult.aspx?What={k}', 'Riksdelen'))
www.riksdelen.se
Failed asserting that false is true.

/home/yamachan/piwik/plugins/Referrers/tests/Unit/SearchEngineTest.php:144

FAILURES!
Tests: 1290, Assertions: 2049, Failures: 4.

@sgiehl
Copy link
Member

sgiehl commented Sep 5, 2016

try running composer update piwik/searchengine-and-social-list on console. that should update the definition package.

@piwikjapan
Copy link
Author

Again, excuted locally:

[yamachan@piwik piwik]$ composer update piwik/searchengine-and-social-list
> Piwik\Composer\ScriptHandler::cleanXhprof
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package mnapoli/phpdocreader is abandoned, you should avoid using it. Use php-di/phpdoc-reader instead.
Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Writing lock file
Generating autoload files
> Piwik\Composer\ScriptHandler::buildXhprof
[yamachan@piwik piwik]$ ./console tests:run ./plugins/Referrers/tests/Unit/SearchEngineTest.php

I had the same result - snip.

@sgiehl
Copy link
Member

sgiehl commented Sep 5, 2016

is your composer.lock modified?

@piwikjapan
Copy link
Author

I did not touch.
But I am not really sure about git merge:

[yamachan@piwik piwik]$ git remote -v
origin  git@github.com:piwikjapan/piwik.git (fetch)
origin  git@github.com:piwikjapan/piwik.git (push)
upstream        git@github.com:piwik/piwik.git (fetch)
upstream        git@github.com:piwik/piwik.git (push)
[yamachan@piwik piwik]$ git fetch upstream
[yamachan@piwik piwik]$ git merge upstream/master
Already up-to-date.
[yamachan@piwik piwik]$ composer update piwik/searchengine-and-social-list
> Piwik\Composer\ScriptHandler::cleanXhprof
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package mnapoli/phpdocreader is abandoned, you should avoid using it. Use php-di/phpdoc-reader instead.
Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Generating autoload files
> Piwik\Composer\ScriptHandler::buildXhprof

@sgiehl
Copy link
Member

sgiehl commented Sep 18, 2016

@piwikjapan I updated the dependencies. Seems the tests are running correctly now

@sgiehl sgiehl added this to the 2.16.3 milestone Sep 18, 2016
@sgiehl sgiehl merged commit 2d2cbf2 into matomo-org:2.x-dev Sep 18, 2016
@mattab mattab changed the title Add tests for piwik/searchengine-and-social-list#14 Add tests for piwik/searchengine-and-social-list#14 for Japanese search engines and keywords Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants