← Back to Discord Forum

Error: no test found

im new to playwright and was just testing around i created a quick and easy test to try it out but whenever i typed in "npx playwright test .\tests\test_try.spec.ts" in terminal it shows that no test is found? im confused

This thread is trying to answer question "Why is the 'npx playwright test' command not finding the test?"

3 replies

i have check my testDir location and its in the correct folder

Check if this could be an issue?

Solution i found: "npx playwright test ./tests/whateverthetestdatasnameis.spec.js"

instead of

"npx playwright test .\tests\whateverthetestdatasnameis.spec.js"

@jaratlanta: 🫡 thnks

🫡 thnks

Related Discord Threads

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.