[💡 Feature]: Allow presets and to customize the test run command

オープン
#53 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript, vscode

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Idea 💡 Needs Triaging ⏳
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
主要言語
TypeScript
スター
8
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

webdriverio/vscode-webdriverio のほかの issue

webdriverio/vscode-webdriverio の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。