Skip to content

Visual Studio Code: unable to debug test with [Before(HookType.Test)] hook method. #2927

@Neth01

Description

@Neth01
  • net9.0
  • TUnit.Playwright 0.56.5
  • Visual Studo Code 1.103.1

The following code in a test class causes the test to fail to debug in VS Code (Playwright Inspector does not launch)

[Before(HookType.Test)]
public Task Setup()
{
    return Task.CompletedTask;
}

SEE project in attached file

TUnit.E2E.Tests.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions