microsoft / microsoft/playwright-java
[Feature]: let bunch of tests run serial and not while other tests are running
オープン
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 298
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 14
説明
🚀 Feature Request
Most tests can run in parallel. But I have some test (*serial.spec.ts) which should not run parallel to any other test as they modify the database in a way that other tests get confused
Example
The only way I found is to configure two projects with dependencies
projects: [
{
name: 'parallel',
testIgnore: [/.*.serial.spec.ts/],
use: {
...devices['Desktop Chrome'],
launchOptions: {
args: ['--ignore-certificate-errors']
}
}
},
{
name: 'serial',
testMatch: /.*.serial.spec.ts/,
dependencies: ['parallel'],
use: {
...devices['Desktop Chrome'],
launchOptions: {
args: ['--ignore-certificate-errors']
}
},
retries: 0,
workers: 1
}]
Motivation
This works, but when i run one serial test in the UI, all parallel tests get executed before. Or I missed something.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue に示されている projects の設定と serial.spec.ts の命名パターンを確認し、次に project の依存関係、UI-mode の実行、worker がどのようにスケジュールされるかを追跡します。完了条件は、serial test を UI で 1 つ実行する場合も含め、関係のない parallel test を先に実行することを強制せずに、serial test がデータベースを変更する同時実行中の test を回避することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- testing-qa
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100