flotwig / cypress-log-to-output

A Cypress plugin that sends all logs that occur in the browser to stdout in the terminal.
146 stars 19 forks source link

Chromium not supported? #15

Closed weyert closed 4 years ago

weyert commented 4 years ago

I tried this plugin out for Cypress but it appears it's not supporting Chromium as I am getting the error when trying to use it:

Warning: An unsupported browser family was used, output will not be logged to console: chromium

Is this expected? I am using the Cypress docker image

flotwig commented 4 years ago

@weyert could you try upgrading to v1.1.2? just published a fix which should help your situation

nmkettler commented 4 years ago

@flotwig I'm still receiving that error as well for electron, even after upgrading to v1.1.2. I am setting the browser via the module api:

cypress
  .run({
    reporter: 'junit',
    browser: 'electron',
    headless: true,
    project: './',
    detached: false,
    config: { baseUrl, video: false, record: false },
    env: {
      ...env,
      HOST_URL: baseUrl,
    },
  })
  .then(res => {
    console.log('cypress results');
    if (res.failures !== 0) process.exit(1);
  })
  .catch(err => {
    console.log(err);
    process.exit(1);
  });
flotwig commented 4 years ago

@nmkettler this module is not supported for Electron, see #2

flotwig commented 4 years ago

@weyert going to close this since it should have been fixed by v1.1.2, please open a new issue if it crops up again