Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

220
Vistas
How can you override .testcaferc.json browsers in CLI

Context:

I have a situation where I want to run Testcafe in docker in a remote environment which requires Testcafe to be run through its CLI, I want to use the .testcaferc file that I also use to test locally so I don't have to manage 2 sets of config. But need to override specific properties to get it working in this environment.

Notably chrome locally and chromium:headless in the pipeline.

The problem:

I can't figure out how to override the browsers for the CLI tool - I can override every other key just fine, but the browser to run on doesn't get overridden

Example CLI command:

testcafe \
            chromium:headless \
            --ports 1337,1338  \
            --disable-gpu-sandbox \
            --disable-gpu \
            --no-sandbox \
            --disable-dev-shm-usage \
            ...

Example .testcaferc.json:

{
   "browsers": ["chrome"],
   ...
}

Expected:

Runs only chromium:headless

Actual:

Fails trying to run chrome

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This is a known issue: https://github.com/DevExpress/testcafe/issues/6618 We have fixed it in the latest TestCafe release: https://www.npmjs.com/package/testcafe/v/1.19.0

Please update to v1.19.0.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda