Skip to content
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

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

pavelfeldman
Copy link
Member

No description provided.

FORCE_COLOR: '1',
PW_TEST_SOURCE_TRANSFORM: require.resolve('./debugTransform'),
PW_TEST_SOURCE_TRANSFORM_SCOPE: testDirs.join(pathSeparator),
},
Copy link
Contributor

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?

Copy link
Member Author

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',
Copy link
Contributor

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?

Copy link
Member Author

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.

'--repeat-each', '1',
'--retries', '0',
'--timeout', '0',
'--workers', '1'
Copy link
Contributor

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?

Copy link
Member Author

@pavelfeldman pavelfeldman Apr 1, 2024

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.

...process.env,
CI: this._options.isUnderTest ? undefined : process.env.CI,
...this._options.envProvider(),
PW_TEST_CONNECT_WS_ENDPOINT: testOptions.connectWsEndpoint,
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, removed.

@pavelfeldman pavelfeldman merged commit e94a823 into microsoft:main Apr 1, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants