Testing kit: smaller gaps found testing retries and plain classes

Đang mở
#684 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Công nghệ
laravel, php
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ả

area/tests type/enhancement when/later

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. Let runJob() 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 in tests/ for tests that don't enable the plugin. Register the plugin's psr-4 mapping 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của temecms/teme

Tất cả issue của temecms/teme

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.