Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add @debug decorator #40

Merged
merged 4 commits into from
Jan 4, 2024
Merged

feat: add @debug decorator #40

merged 4 commits into from
Jan 4, 2024

Conversation

SebastianSedzik
Copy link
Owner

Runs a @test(s) or @suite(s) in debug mode.
@test(s) or @suite(s) lacking the @debug decorator will be excluded.
Learn more about debug mode: https://playwright.dev/docs/debug

import { suite, test, debug, TestArgs } from 'playwright-decorators';

// Debug selected test suite(s)
@debug() // <-- Decorate suite with @debug()
@suite()
class DebugTestSuite {
}

// Or debug selected test(s)
@suite()
class TestSuite {
    @debug() // <-- Decorate test with @debug()
    @test()
    async test({ page }: TestArgs) {
        // ...
    }
}

Copy link

changeset-bot bot commented Jan 4, 2024

🦋 Changeset detected

Latest commit: e2f962f

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@SebastianSedzik SebastianSedzik merged commit a50e25b into master Jan 4, 2024
4 checks passed
@SebastianSedzik SebastianSedzik deleted the debug-decorator branch January 4, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant