Using wp_mocks together with WordPress core Unit tests
@ericmann đang làm issue này rồi.
Từ ngày 27/5/2017.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
I know that wp_mock and WordPress core Unit tests work differently and it may not even be possible to have them run together.
I use both and like both. But there are certain tests for which I would prefer wp_mock and certain tests for which I would prefer WordPress core Unit tests. But unfortunately right now there is no way to configure both of them for a single plugin. You have to pick one and stick with it even if you can group all the 'mock' tests using a separate testsuite or phpunit group and invoke the separately from phpunit.
What I am suggesting is to have a way to setup both of them together for a plugin and invoke the appropriate framework and their tests using either phpunit's group or testsuite feature.
I know that there was some recent discussion about it and I am interested in knowing everyone's thoughts on it.
- Ngôn ngữ chính
- PHP
- Star
- 714
- Fork
- 72
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của 10up/wp_mock
-
`expectActionAdded( array( Functions::type( class-string ), 'method' ) )` fails when same method name used twiceCó thể đã có người làm @faisalahammad đã nhận 126 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
-
PHPCS reporting error on dependent library nikic/php-parser, hamcrest/hamcrest-phpCó thể đã có người làm @faisalahammad đã nhận 126 ngày trước. Đang mởDependencies
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Request: control Strict Mode per testCó thể đã có người làm @BrianHenryIE đã nhận 311 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Pass in Closure for HooksCó thể đã có người làm @faisalahammad đã nhận 126 ngày trước. Đang mởEnhancement Question
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Compatibility with PHPUnit 10Đang mởDependencies PHPUnit
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
Issue tương tự
-
wpvc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
10up/autoshare-for-twitter#438 ·
-
wpvc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
10up/Ad-Refresh-Control#240 ·
-
wpvc
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Backend bug severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
RunningJoke/allipunkte#74 ·