Skip to content

[QUESTION] Changing folder to run tests from #59

@vushtan

Description

@vushtan

🐞 Describe the question:

Here we have testDir commented in the git: link

In "Chapter2. Extra resources" we are being sent to the config that says _testDir: 'tests'_ link

if my testDir is set to "./tests" and I run: "npx playwright test ./tests-examples" I get the error "Error: No tests found.", so the best I could get is to run the tests from the folder that is set with testDir, but while the Chapter2.2 you are not changing it and still manage to run tests from different folders.

So what is wrong?
How could we run tests from different folders without changing the default test folder.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is neededpendingquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions