playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[BUG] --host only supported for show-report, not normal test

Open netmindz opened this issue 1 year ago • 1 comments

System info

  • Playwright Version: [v1.41.1]
  • Operating System: [All]
  • Other info:

Steps

  • try and run playwright test --host 0.0.0.0

Expected report to be accessible on 0.0.0.0

Actual unknown option --host

This item https://github.com/microsoft/playwright/pull/18517 allows for --host and port to be used when show-report is called, but if you are just using playwright test, where it shows the report at the end automatically, you get unknown option for --host

netmindz avatar Jan 31 '24 14:01 netmindz

You should configure it as

reporter: [['html', { host: '...' }]],

pavelfeldman avatar Jan 31 '24 17:01 pavelfeldman

Closing as per above.

pavelfeldman avatar Feb 03 '24 02:02 pavelfeldman

You can configure as described, but why not allow the command like arguement to be passed to "test" as well as "show-report"

netmindz avatar Feb 03 '24 13:02 netmindz