dennisbergevin / cypress-plugin-last-failed

A companion Cypress plugin for `cy-grep` that re-runs the last failed test(s).
MIT License
12 stars 2 forks source link

.skip test cases also showing under failed test #3

Closed SubramanyamPalla closed 4 months ago

SubramanyamPalla commented 5 months ago

Hi Team,

I've started using the cypress-plugin-last-failed and i observed that it is considering .skip test cases as failed test cases. And the retry passed test cases are also considered failed test cases.

dennisbergevin commented 5 months ago

Hi @SubramanyamPalla, thank you for reaching out!

Just to confirm, you are speaking of the filter toggle behavior within cypress open?

For more information on using required tags for skipped tests, rather than .skip: https://glebbahmutov.com/blog/required-tags-instead-of-skipped-tests/

SubramanyamPalla commented 4 months ago

Hi @dennisbergevin

Thank you for the updates, yes i'm speaking of the filter toggle behavior within cypress open.

Please find the screen attached here for reference.

  1. 1st screenshot 1 failed test case + 4 skip test cases are there
  2. When i use the Filter failed test cases the addon is picking up the 1 failed test case + 4 skip test cases
  3. The addon is picking up the test cases which are passed in retry( i.e. In first try the test case is failed but on retry the cases is passed)

I'm expected the addon should pick up only 1 test case which is failed.

Image 1 image

Image2: image

dennisbergevin commented 4 months ago

@SubramanyamPalla A new Version 1.0.2 is now available.

Please take special note regarding the suggestion on handling skipped tests, using required tag from the @bahmutov/cy-grep package.

Please feel free to reach out if you have any further issues!