-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: move debug to test server #450
Conversation
FORCE_COLOR: '1', | ||
PW_TEST_SOURCE_TRANSFORM: require.resolve('./debugTransform'), | ||
PW_TEST_SOURCE_TRANSFORM_SCOPE: testDirs.join(pathSeparator), | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We pass PWDEBUG: 'console'
in the cli mode, but not here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot what it stands for. It means browser console, so it should be in. Added.
projects: projects.length ? projects.map(p => p.name).filter(Boolean) : undefined, | ||
headed: !this._options.isUnderTest, | ||
workers: 1, | ||
trace: 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am probably missing it, but where was trace: 'off'
in the old code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was no trace off in the old code, I can add it though.
src/playwrightTestCLI.ts
Outdated
'--repeat-each', '1', | ||
'--retries', '0', | ||
'--timeout', '0', | ||
'--workers', '1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we read these options from options
instead of hardcoding them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only workers and headed are a part of PlaywrightTestRunOptions, the rest are hard-coded.
src/playwrightTestServer.ts
Outdated
...process.env, | ||
CI: this._options.isUnderTest ? undefined : process.env.CI, | ||
...this._options.envProvider(), | ||
PW_TEST_CONNECT_WS_ENDPOINT: testOptions.connectWsEndpoint, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this go over protocol now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does, removed.
fed18c9
to
3401e6f
Compare
No description provided.