Skip to content
CodeKruPro

Automatic reruns of failed tests: good or bad?

QuizMedium-HardAsked in: Swiggy

The team turns on automatic reruns: each failed test is retried up to two times (for example with Surefire's -Dsurefire.rerunFailingTestsCount=2 or pytest-rerunfailures' --reruns 2). Which statements are true? Choose all that apply.

  • Reruns can keep the pipeline green when the cause is a passing glitch, such as a slow environment
  • Reruns can hide real bugs that appear only sometimes, such as race conditions in the product
  • Tests that passed only on a rerun should be reported as flaky and fixed, not ignored
  • Reruns make the suite faster

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in