ruby on rails - Rerun Cucumber step only in case of specific failure -


running cucumber in circleci selenium tests fail due circleci's performance. common failure net::readtimeout error, never seems happen locally. want rescue steps error , try them again, not want rerun failed tests.

i put build rescue specific step(s) seem trigger error, ideally able provide cucumber list of errors rescues once or twice, rerun step, before letting error pass through.

something like:

# support/env.rb cucumber.retry_errors = {   # error => number of retries   "net::readtimeouterror" => 2 } 

does exist?

i surprised if found looking in cucumber.

re-running failing step make sure actual failure , not random network glitch is, perspective, solving wrong issue.

my approach see if verification looking possible without network. might consider using other tooling cucumber if must re-run few times make sure error error. would, however, lead me down rabbit hole. how many times should run, threshold? should 3 out of 5 executions pass declare passing test? gets ugly fast in eyes.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -