Upgrade to version 3 spec
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu bằng cách đọc đặc tả giao diện test runner được liên kết và xem xét cách test runner Lua này hiện triển khai phiên bản 1. Kiểm tra hướng dẫn bài tập instructions.md và định dạng của results.json, đồng thời cân nhắc liệu .meta/config.json hoặc siêu dữ liệu kiểm thử có thể biểu diễn các giá trị task_id hay không. Hoàn thành nghĩa là hỗ trợ giao diện phiên bản 3 để có thể liên kết từng bài kiểm thử với các tác vụ được đánh số.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
If possible, this test runner should be updated to version 3 of the test runner interface specification. In version 3, one additional feature is enabled: the ability to link individual tests to tasks.
This allows the website to show which tests belong to which tasks.
The way tests are linked to tasks is via an (optional) task_id field, which is an integer that matches the number of the task as defined in the exercise's instructions.md file (note: the instructions start at index 1).
This is an example of a test in the results.json file:
{
"name": "Expected oven time in minutes",
"status": "pass",
"task_id": 1,
"test_code": "Assert.Equal(40, Lasagna.ExpectedMinutesInOven());"
}
You are completely free in how to implement this. Some options are:
- Add metadata to a test that the test runner can then discover while running the tests (e.g. an attribute or annotation)
- Define a test name/task id mapping (e.g. in the exercise's
.meta/config.jsonfile) - Any other option you can think of...
As this test runner currently implements version 1 of the test runner specification, it might be good to first upgrade to version 2 of the test runner specification before upgrading to version 3.
Let me know if there are any questions.
- Ngôn ngữ chính
- Lua
- Star
- 0
- Fork
- 7
- Merge trung bình
- 6 giờ 18 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không 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 tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
EmirErtorer/ink-away.koplugin#38 · 1 bình luận ·
-
Add event count to export UIĐang mởFeature Request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Questie/QuestieTrace#92 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Forever: Forgotten Loa Idols (97225) needs Report to Sen’jin Village (805) as a prerequisiteĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
WitchĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
LuaLS/lua-language-server#3471 ·