Skip to content

[Feature]: VSCode extension: better feedback for error in playwright.config #34384

Open
@scottdrichards

Description

🚀 Feature Request

If there are errors in playwright.config (for me I had a bad path for a reporter) playwright fails to run. When running npx playwright you get decent feedback but in the "Testing" toolbar, it just says "No tests have been found in this workspace yet. [Install Additional Test Extensions]". Perhaps the extension is not allowed to report anything better when it errors but it would be nice to see.

Having an "Output" for the extension would be helpful as well. I looked and didn't see any "Output" for "Playwright" in the console drawer.

Image

Example

At a minimum: "Playwright encountered an error"

Better: "Playwright encountered an error: 'Cannot find module './reporters/performanceReporter.ts'"

Best: "Playwright encountered an error: 'Cannot find module './reporters/performanceReporter.ts'" [button to take you to terminal to see full errors]

Motivation

I spent a good deal of time trying to figure this bug out, the wording made me think there was a problem with the extension, not playwright itself.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions