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

No launch error output using Playwright + summaryReporter #2796

Open
miyasudokoro opened this issue Aug 29, 2024 · 1 comment
Open

No launch error output using Playwright + summaryReporter #2796

miyasudokoro opened this issue Aug 29, 2024 · 1 comment

Comments

@miyasudokoro
Copy link

miyasudokoro commented Aug 29, 2024

I followed the instructions on https://modern-web.dev/docs/test-runner/browser-launchers/playwright/. However, when I ran it, I had no output at all in the console, only "Process finished with exit code 1." After playing around with the configurations, I discovered that removing the summaryReporter allowed the error being thrown by Playwright to be written to the console. The error was "browserType.launch: Executable doesn't exist at C:\path-redacted\chrome.exe".

As an aside, the documentation at that page is insufficient for setting up Playwright -- it should probably say "npm init playwright@latest" or something like that, I still haven't gotten it installed correctly -- but I am mainly concerned with the communication of launch errors when using summaryReporter.

Here is pretty much what my configurations look like at the moment. The options other than reporters make no difference.

export default {
  coverage,
  coverageConfig,
  manual,
  debug,
  plugins: [
        importMapsPlugin( {
            inject: {
                importMap: getImportMap()
            }
        } )
    ],
   // reporters: [
   //      summaryReporter()
   // ],
   browsers: [
     playwrightLauncher({ product: 'chromium' }),
     playwrightLauncher({ product: 'firefox' })
     // my product does not support webkit
   ],
};
@gian1200
Copy link

Could be something related to importMapsPlugin. I have a quite complex web-test-runner.config.mjs with summaryReporter and it finishes without errors (I do not have importMapsPlugin, I use legacy and inject).

I do have a different issue where summaryReporter shows undefined test names; but it's not related to our issue
image

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

No branches or pull requests

2 participants