Closed Zumwaloro closed 4 months ago
@Zumwaloro I cannot reproduce this. In fact, our own tests are scattered among many subfolders and everything works fine.
Also, Playwright never prints the following to the terminal. Are you using a custom reporter?
Starting the run with 0 tests:
Finished the run: failed
In order to process, we would need a full repro including your config and test files.
I just managed to find out what the problem was, it is fortunately not related but made it seems so. Closing this, thanks for the reply anyway.
Version
1.44.1
Steps to reproduce
If you have a configuration for a project where you specify a testDir, Playwright only finds testfiles if you explicitly provide the folder. If you provide a folder with sub-folders, you get the message
Starting the run with 0 tests. Finished the run: failed.
Example 1: Playwright finds all .spec.ts tests that are directly saved in folder 'actions'.
Example 2: Playwright does not find subfolders containing the tests if the subfolder is not specified.
Expected behavior
Playwright should be able to find subfolders containing the .spec.ts files.
Actual behavior
I get the message
if I use a testDir that contains sub-folders.
Additional context
The path is correct as it runs with
/actions
.Environment