[💡 Feature]: Allow presets and to customize the test run command
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript, vscode
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
The issue asks for a setting, such as customRunCommand, that replaces the extension's built-in test run command with a user-defined one. Its placeholders are configFile, specFile and specLineNumber. Start by finding where the extension builds the single-spec run command and how it reads its settings. Maintainers have not agreed on the design, and the issue has had no comments in 525 days, so confirm the approach with them before writing code. Done means a configured command runs with the placeholders substituted.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem?
There are several use cases for having a one-click run with a custom commands.
Examples:
User uses want to debug a single test, therefore for a specific test I want to run with CLI flag --maxInstances 1 and my own custom CLI argument, I might want to run an npm script and not simply invoke the test-runner with the config.
Therefore, we could customize the command, making use of variables.
Describe the solution you'd like.
Have an option somewhere (VS Code extension option maybe)
customRunCommand: "npx wdio ${configFile} --spec "${specFile}:${specLineNumber}" --myCustomArg; echo "Done!"; curl -PUT example.com/done --data "{ done: true }"
or
customRunCommand: "npm run myscript"
When users chooses to run a specific test, the custom command runs, replacing the variables configFile, specFile and specLineNumber among others.
customRunCommand: "npx wdio cloud.wdio.conf.ts --spec "project/tests/myspec.spec.ts:123" --maxInstances 1 --myCustomArg; echo "Done!"; curl -PUT example.com/done --data "{ done: true }"
Describe alternatives you've considered.
No response
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- Ngôn ngữ chính
- TypeScript
- Star
- 8
- Fork
- 5
- 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 webdriverio/vscode-webdriverio
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
webdriverio/vscode-webdriverio#210 · 1 reaction ·
-
[🐛 Bug]: WDI5 + SauceLabsĐang mởBug 🐛 Needs Triaging ⏳
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
webdriverio/vscode-webdriverio#121 · 1 bình luận ·
-
[🐛 Bug]: Debug on TypescriptĐang mởBug 🐛 Needs Triaging ⏳
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
[💡 Feature]: Release on OpenVSXCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởIdea 💡 Needs Triaging ⏳
Độ khó 3/5 1-3 giờ Mức phù hợp với người mới 22/100
-
[🐛 Bug]: After running a test, the status in the testing panel is not updatedCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởBug 🐛 Needs Triaging ⏳
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Tất cả issue của webdriverio/vscode-webdriverio
Issue tương tự
-
Độ 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
-
rel: fix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Deltares/fews-web-oc#2400 ·
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 84/100
ardia-browser/ardia#4426 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug report: isValidISODateDashOnly accepts text before or after the date-timeCó thể đã có người làm @bardrop đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
pnp/cli-microsoft365#7713 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Diagram: Journey Type: Bug / Error
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
mermaid-js/mermaid-v13#1293 ·
Maintainer thường phản hồi trong vòng 1 ngày