Skip to content

Conversation

@miliberlin
Copy link
Member

@miliberlin miliberlin commented Feb 4, 2026

Summary

  • When pw-test encounters "No tests found", display a helpful hint suggesting to check the Playwright configuration
  • Helps users understand they need to verify their Playwright config targets the correct test files

Test plan

  • Run pw-test with a Playwright config pointing to a non-existent test directory
  • Verify the helpful message appears after the "No tests found" error

When pw-test encounters "No tests found", display a helpful hint suggesting
to check the Playwright configuration to ensure it targets the test files.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@miliberlin miliberlin changed the title feat: prompt to use --include when pw-test finds no checks [red-125] feat: add helpful message when pw-test finds no tests [red-125] Feb 5, 2026
@miliberlin miliberlin force-pushed the michelle/red-125-add-include-flag-to-include-specific-directories-when-using branch from e284aab to 71472d0 Compare February 5, 2026 16:51
Copy link
Contributor

@hwartig hwartig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

})
runner.on(Events.STREAM_LOGS, (check: any, sequenceId: SequenceId, logs) => {
reporters.forEach(r => r.onStreamLogs(check, sequenceId, logs))
const hasNoTestsFound = logs.some((log: { message: string }) => log.message?.includes('No tests found'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels quite brittle and I can already see us forgetting to update the message in both places, but I don't have a better solution that would be as easy to implement. 🤷

@miliberlin miliberlin merged commit f0e0910 into main Feb 6, 2026
4 checks passed
@miliberlin miliberlin deleted the michelle/red-125-add-include-flag-to-include-specific-directories-when-using branch February 6, 2026 15:14
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.

2 participants