neotest-playwright icon indicating copy to clipboard operation
neotest-playwright copied to clipboard

Invalid args applied to npx playwright test

Open MagerlinC opened this issue 1 year ago • 1 comments

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 /<path-to-my-test-file.spec.ts>

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.

MagerlinC avatar Jul 25 '24 15:07 MagerlinC

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.

thenbe avatar Jul 25 '24 20:07 thenbe