Closed zakhenry closed 2 years ago
Hi Zak, You can define any additional parameters in this field of a run configuration:
Wouldn't I need to do this on every test though? As in the workflow would be run test in margin, let it fail, go edit run configuration then rerun. for each test?
you can use run configuration templates to define default parameters to be used for a newly created configuration:
Oh fantastic, that works well thanks!
Also works if you manual change "Project Base" to the root of your project.
Don't know why this is set to the folder of the test being run - don't know when that would be needed? IMO it should (almost) always be the project root - the same ways as when you run playwright using "npm run"
I use NX and so my tests are fairly nested within a folder. The npm script I run to get headed tests is
I don't have anything special in the config file, but I suspect the
testDir: './src/tests',
field is what is causing this plugin to fail to find my tests?Out of the box if I try to run a test from the gutter I get
the console shows
nothing in that command has the relative path to the spec file so I think the config needs to be passed for discovery (or maybe the plugin can pass the full path directly?)