Test failed on Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 62/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- php
- 领域
- testing-qa
调研方向
首先运行 php test.php,并检查第 787 行附近的 tests/phpunit/tests/image/editorImagick.php,其中 Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images 在 cloudflare-status 数据集上失败。将测试行为与 WordPress 提交 082f6e6f3bb0716969414d47b9fe71251b984ccb 进行比较;在受支持的 PHP 和 ImageMagick 版本上该失败测试通过,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Test is failing
There was 1 failure:
1) Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images with data set "cloudflare-status" ('/tmp/wp-test-runner/tests/php...us.png')
The resized image file size is not smaller than the original file size.
Failed asserting that 26899 is less than 24940.
/tmp/wp-test-runner/tests/phpunit/tests/image/editorImagick.php:787
/tmp/wp-test-runner/vendor/phpunit/phpunit/phpunit:107
FAILURES!
Tests: 24868, Assertions: 89135, Failures: 1, Warnings: 86, Skipped: 15.
Error: Failed to perform operation.
To Reproduce
Steps to reproduce the behavior:
- Run
php test.php - Tested on PHP 8.2, and PHP 8.1 with ImageMagick 7 and 6
Expected behavior
Test to pass
Screenshots
Additional context
This probably happened after the WordPress update on: https://github.com/WordPress/wordpress-develop/commit/082f6e6f3bb0716969414d47b9fe71251b984ccb
- 主要语言
- PHP
- 星标
- 77
- 派生
- 83
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 2
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
WordPress/phpunit-test-runner 的其他 Issue
-
A failed results upload passes silently可能已有人在做 @ekamran 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
WordPress/phpunit-test-runner#378 ·
-
test-reporter-request
难度 1/5 1 小时以内 新手友好度 72/100
WordPress/phpunit-test-runner#373 ·
-
WPT_CERTIFICATE_VALIDATION is still documented but no script reads it可能已有人在做 @ediamin 于 17 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
WordPress/phpunit-test-runner#363 ·
-
report.php cannot parse a junit.xml larger than about 12.5 MB可能已有人在做 @ekamran 今天认领。 未关闭
WordPress/phpunit-test-runner#376 · 已指派 1 人 ·
-
Node v 26可能已有人在做 @gohelkunjan 于 3 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 42/100
WordPress/phpunit-test-runner#374 ·
查看 WordPress/phpunit-test-runner 的全部 Issue
相似的 Issue
-
support
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 66/100
-
难度 2/5 1-3 小时 新手友好度 76/100
mollie/WooCommerce#1346 ·
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
area: ui bug
难度 2/5 1-3 小时 新手友好度 84/100
nplhse/collaborative-ivena-statistics#1977 ·
维护者通常 1 天内回复