k6-action icon indicating copy to clipboard operation
k6-action copied to clipboard

support of bundled xk6-browser

Open olegchorny opened this issue 1 year ago • 3 comments

Hello k6! I wonder if github action is supposed to run a test without a requirement to install the xk6-browser.

Uncaught (in promise) GoError: launching browser: exec: no command\n\tat github.com/grafana/xk6-browser/browser.mapBrowserType.func1

Thanks!

olegchorny avatar Apr 15 '23 05:04 olegchorny

Hi @olegchorny!

Can you send us a reproducible step so we can investigate more? Currently, we don't have a k6 docker image yet which contains a browser, so this might be the reason your test is failing. See https://github.com/grafana/k6/issues/2914 for more information.

mdcruz avatar Apr 17 '23 15:04 mdcruz

Hi @olegchorny!

Can you send us a reproducible step so we can investigate more? Currently, we don't have a k6 docker image yet which contains a browser, so this might be the reason your test is failing. See grafana/k6#2914 for more information.

right, I managed to setup the job by installing the required bits and invoke k6 run command. Thanks!

olegchorny avatar Apr 21 '23 20:04 olegchorny

I wonder if github action is supposed to run a test without a requirement to install the xk6-browser.

I think so!

For reference while we wait for the implementation, you can download k6 and enable the required settings to trigger browser tests as shown in this example.

ppcano avatar Dec 15 '23 15:12 ppcano

This is now supported in the new GitHub action: https://github.com/grafana/setup-k6-action (browser: true)

ppcano avatar Jul 16 '24 09:07 ppcano