Testing kit: smaller gaps found testing retries and plain classes
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Start in packages/teme-testing, reading PluginUnderTest::runJob() and InteractsWithTeme::plugin(), and check how JobContext::attempt() gets its value. The issue leaves two choices open: whether runJob() takes an attempt number or replays retries, and whether the plugin's psr-4 mapping is registered at test boot or documented. Confirm the chosen approach with a maintainer first. Done means a test can run a job on attempt N and load a plugin class without calling plugin().
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Two small gaps in the testing kit found while testing a plugin with retries.
runJob()always runs attempt 1. A job that behaves differently on its last try (for example, marking a share failed instead of letting Teme retry) can't be tested:JobContext::attempt()is always 1. LetrunJob()take the attempt number, or run a job's retries as the queue would.- A plugin's classes load only after
plugin()is called. A test of a plain class of the plugin before then fails with "class not found", so the package needs its own autoloader intests/for tests that don't enable the plugin. Register the plugin'spsr-4mapping when the test case boots, or document the pattern.
Where: packages/teme-testing, PluginUnderTest::runJob() and InteractsWithTeme::plugin().
🤖 Generated with Claude Code
- Ngôn ngữ chính
- PHP
- Star
- 1
- Fork
- 1
- Merge trung bình
- 1 giờ 40 phút
- Pull request đã merge (30 ngày)
- 143
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 temecms/teme
-
area/admin type/enhancement when/soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/media type/enhancement when/soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/admin type/bug when/soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/import type/documentation when/soon
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/admin area/import type/bug when/later
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
P2 Team S Type: Infrastructure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
google/site-kit-wp#14271 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Display price Views field throws TypeError when the row has no productCó thể đã có người làm @albanycomputers đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
backdrop-contrib/ubercart#610 ·