[wp-trac] [WordPress Trac] #29785: User count not correct
WordPress Trac
noreply at wordpress.org
Thu Sep 1 09:11:32 UTC 2016
#29785: User count not correct
-------------------------------------------------+-------------------------
Reporter: psoluch | Owner:
Type: defect (bug) | boonebgorges
Priority: normal | Status: assigned
Component: Users | Milestone: Future
Severity: normal | Release
Keywords: good-first-bug has-unit-tests has- | Version:
patch | Resolution:
| Focuses:
| performance
-------------------------------------------------+-------------------------
Comment (by dots):
Hi All,
I have added the current test patch which will test the result of this
bug. But I am getting the results in Failure. If anyone helps me what
exactly I have to do in this file in PHPUnit testing.
Below are the results which I got.
{{{
C:\wamp\www\wordpress-core>phpunit tests/phpunit/tests/user/countUsers.php
Installing...
Running as single site... To run multisite, use -c
tests/phpunit/multisite.xml
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-
http.
Not running external-oembed tests. To execute these, use --group external-
oembed
.
PHPUnit 4.1.6 by Sebastian Bergmann.
Configuration read from C:\wamp\www\wordpress-core\phpunit.xml.dist
←[41;37mF←[0m←[41;37mF←[0m←[36;1mS←[0m←[36;1mS←[0m..
You should really fix these slow tests (>150ms)...
1. 994ms to run Tests_User_CountUsers:test_count_users_is_accurate with
data se
t #0
2. 523ms to run Tests_User_CountUsers:test_count_users_is_accurate with
data se
t #1
Time: 13.92 seconds, Memory: 27.75MB
There were 2 failures:
1) Tests_User_CountUsers::test_count_users_is_accurate with data set #0
('time')
Failed asserting that 9 matches expected 8.
C:\wamp\www\wordpress-core\tests\phpunit\tests\user\countUsers.php:48
2) Tests_User_CountUsers::test_count_users_is_accurate with data set #1
('memory
')
Failed asserting that 9 matches expected 8.
C:\wamp\www\wordpress-core\tests\phpunit\tests\user\countUsers.php:48
←[37;41m ←[0m
←[37;41mFAILURES! ←[0m
←[37;41mTests: 6, Assertions: 8, Failures: 2, Skipped: 2.←[0m
C:\wamp\www\wordpress-core>
}}}
Thanks in Advance :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29785#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list