Skip to content

[Feature]: --project-invert #34394

Open
Open
@gskierk

Description

@gskierk

🚀 Feature Request

Similar to --grep and --grep-invert: npx playwright test --project-invert <project>. It's just a proposal and there's life without it. If it doesn't make sense, feel free to close the issue without notice.

Example

// playwright.config.ts
export default defineConfig({
  projects: [
    { name: 'browser-desktop', /* blah blah */ },
    { name: 'browser-tablet', /* blah blah */ },
    { name: 'browser-mobile', /* blah blah */ },
    /* more blah blah */
    { name: 'api' }
  ]
});
// package.json
{
  "scripts": {
    "test:e2e": "playwright test ./tests/e2e --project-invert api",
    "test:api": "playwright test ./tests/api --project api"
  }
}

Motivation

CLI will be more flexible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions