thenbe / neotest-playwright

A playwright adapter for neotest.
MIT License
42 stars 5 forks source link

Invalid args applied to npx playwright test #39

Open MagerlinC opened 3 months ago

MagerlinC commented 3 months ago

Hi there!

First of all, thanks for making this adapter! I've got the installation and config down, and I can now correctly see my tests in the test summary. However, when I actually run the tests, I can see the following in the test output:

npx playwright test --no-coverage --testLocationInResults --verbose --json --outputFile=/var/folders/5t/wrvwpv150cq3b9c_2gpn 04 page$' --forceExit \/

This causes playwright to throw an error: error: unknown option '--no-coverage'. I get the same error if I copy and paste this command myself. In testing, actually none of the args are valid args. I checked the Playwright command line docs, and couldn't find those args either.

Perhaps you can help enlighten me as to what is happening? I have l a very simple setup, and didn't set up any of those args in the config of neotest/this adapter myself.

thenbe commented 3 months ago

Hi!

It seems these flags are from neotest-jest.

But it's difficult to say exactly how they ended up being passed to playwright, or more importantly, how to fix it, without knowing more about the config/project structure.