Skip to content

Retry only failed test when --num-flaky-test-attempts is provided #2429

@jerrycp

Description

@jerrycp

GIVEN --num-flaky-test-attempts is N,
WHEN flank is run ,
THEN

  • expect that only failing test is retried up to N times.
  • expect that passing test is executed once.

I have tried running flank v23.07.0, and provided the argument --num-flaky-test-attempts=4, for 2 test named as :

  • alwaysPass
  • alwaysFail

I expected the "alwaysPass" test to be executed only once, without further retry. But, it was executed for 4 times as shown in the attached screenshot.

Based on my understanding of the previous issue : #636
I believe that the retry feature should only be executed on failing test ?

Can someone help to provide advice ?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions