最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Playwright test not running in parallel - Stack Overflow

programmeradmin1浏览0评论

I have a single Playwright test setup to run multiple times with different parameters.

const chars = [
  {name: "John"},
  {name: "Jane"},
];


chars.forEach(async char => {
  test(`Test for ${char.name}`, async ({ page }) => {
    await runTest(page, char.name);
  });
});

I have a list of characters, which a test is run for each. However, these tests happen in sequence and not in parallel. They are all in one file.

In the playwright.config.js fullyParallel: true, on each project such as chromium and it is also set to true in defineConfig.

If you need more information, please ask. How can I run these in parallel?

发布评论

评论列表(0)

  1. 暂无评论