TécnicaMid

Cómo responder «How would you test this?» en una entrevista en inglés

How would you test this? How would you know it actually works?

Ordena la respuesta en capas: «I'd start with the happy path, then the edges — empty input, a single item, and something that isn't a number». Añade dónde esperas una regresión y cómo aíslas dependencias: «I'd mock the external call rather than hit it for real». No hace falta listar veinte casos: tres bien elegidos demuestran criterio.

Respuesta modelo en inglés

I'd start with the happy path, then the edges: empty input, a single item, and something that isn't a number at all. Those three catch most of it. I'd also add one test around the part I changed last, since that's where I'd expect a regression. And for the external call, I'd mock it rather than hit it for real.

Nivel B1-B2: pensada para que la adaptes a tu experiencia, no para memorizarla palabra por palabra. Cambia el stack, los años y el contexto por los tuyos.

Frases clave que merece la pena memorizar

  • I'd start with the happy path, then the edges
  • That's where I'd expect a regression
  • I'd mock the external call rather than hit it for real

Por qué te hacen esta pregunta

Es la pregunta que separa a quien escribe código de quien lo mantiene. Quieren ver si piensas en los casos límite sin que te los pidan y si sabes dónde poner el esfuerzo, porque «lo testearía todo» no es una respuesta, es una lista. También es una pregunta de vocabulario: el inglés de testing («happy path», «flaky», «coverage», «mock») aparece a diario en un equipo real y se nota enseguida quién lo ha usado y quién solo lo ha leído.

Errores típicos de hispanohablantes

  • Traducir «probar» como «to prove». Probar código es «to test»; «prove» es demostrar algo, como un teorema.
  • Pronunciar «suite» como «suit». La suite de tests se dice /suíit/, igual que «sweet».
  • Decir «I test that it works fine» sin nombrar casos. Di «empty input», «a single item», «an invalid type».
  • Confundir «assert» y «assure». En un test se hace «assert»; «assure» es tranquilizar a una persona.
  • Traducir «casos límite» como «limit cases». En programación se dice «edge cases» o «corner cases»; «limit case» no es un término que se use.

En resumen: Tres palabras te dan la respuesta entera: «happy path», «edge cases» y «regression». Y ojo con dos clásicos: probar código es «to test», no «to prove», y «test suite» se pronuncia /suíit/, igual que «sweet».

También te la pueden hacer así

  • How would you test this?
  • How would you know it works?
  • What test cases would you write?
  • What would you check before merging this?

Leerla no es lo mismo que decirla

Esta pregunta se responde en voz alta y bajo presión. En DevLingo la ensayas con un tutor IA que hace de entrevistador y te corrige la frase concreta que dijiste mal, no un listado genérico de errores.

Ensayar esta pregunta gratis

Otras preguntas de técnica

Todas las preguntas de entrevista·Glosario de inglés técnico

Cómo responder «How would you test this?» en una entrevista en inglés — DevLingo