docs/src/test-reporter-api/class-testrun.md
Controls which tests will run and their expected status. A [TestRun] is available during [method: Reporter.preprocess]. Setup and teardown projects cannot be changed.
Excludes a test or suite from the run. Excluded tests do not appear in the report and their bodies are not executed.
test <[TestCase]|[Suite]>Test or suite to exclude. The root suite cannot be excluded.
Marks a test or every test in a suite as "should fail". Playwright runs the tests and ensures they are actually failing, useful for documenting broken functionality until it is fixed.
test <[TestCase]|[Suite]>Test or suite to mark as expected-to-fail.
reason ?<[string]>Optional explanation surfaced as the annotation description.
Marks a test or every test in a suite as fixme. The test bodies are not executed and the tests are reported as skipped, with the intention to fix them.
test <[TestCase]|[Suite]>Test or suite to mark as fixme.
reason ?<[string]>Optional explanation surfaced as the annotation description.
Skips a test or every test in a suite. The test bodies are not executed and the tests are reported as skipped.
test <[TestCase]|[Suite]>Test or suite to skip.
reason ?<[string]>Optional explanation surfaced as the annotation description.
Disables Playwright's built-in shard filter for this run, leaving sharding to the reporter. Reporters typically implement their own sharding by calling [method: TestRun.exclude] on out-of-shard tests.