playwright.dev icon indicating copy to clipboard operation
playwright.dev copied to clipboard

[BUG] Missing documentation about the VSCode extension

Open AlexKomanov opened this issue 2 years ago • 1 comments

Context:

  • Extra: VSCode Extension v.0.2.6

Describe the bug

The following chapter has missing information: https://playwright.dev/docs/getting-started-vscode#running-tests

In case we have several projects that cover several parts of the whole project, there is an option to get the following warning message:

image

In this case - the test/s will not be performed.

In our automation project - we have several projects that cover different sub-folders of the tests folder:

image

We need to provide the information for the extension - which of the project is the default, and only the tests in the chosen project will be performed. It is possible to choose all of them or the particular one:

image

image

image

The question is the following:

Is it by design? Correct behavior that is just not documented as well? Or maybe a bug?

AlexKomanov avatar Aug 03 '22 09:08 AlexKomanov

I made a PR addressing workspaces with multiple root folders and monorepos.

But I still think that the VS Code extension could be improved.

For example, in my explanation about monorepos, you can see a picture showing all tests from all packages. The first project, however, restricts the scope of the files to be found by having setting the property testDir to ./apps/client/tests.

IMHO, the testing tree should only show the matched test files from any given project. It seems to me that, at all times, the testing tree show all test files from all projects, and I find that very confusing.

phcoliveira avatar Sep 18 '22 20:09 phcoliveira

closing this as docs have been updated

debs-obrien avatar Nov 29 '22 10:11 debs-obrien