Run Just The Last Failed Tests Using cypress-plugin-last-failed

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 8

  • @easonkai9195
    @easonkai9195 Před 2 měsíci +1

    That's a very useful plugin. Thanks for gleb introduction to using

  • @ChongSLee
    @ChongSLee Před 2 měsíci

    great info. thank you. Will there be lesson somewhere how to run effectively failed tests in the CI pipeline?

    • @gleb
      @gleb  Před 2 měsíci +1

      I might add a lesson to my "Cypress Plugins" course cypress.tips/courses/cypress-plugins

  • @artyomri5082
    @artyomri5082 Před 6 dny

    can you suggest any solution just to re-run last failed specs (not just tests like on the video)?

    • @gleb
      @gleb  Před dnem

      Not easily. You would need to store the specs filenames somehow, then run Cypress again with just those specs. Easy to do on a single machine, harder to do when the run is distributed across several CI machines

  • @hryv
    @hryv Před měsícem

    Cypress have rerun option isnt it the same?

    • @gleb
      @gleb  Před měsícem

      No, Cypress "re-run tests" simply runs _all_ tests. I am talking about running just the failed ones

    • @hryv
      @hryv Před měsícem

      @@gleb hm, as I tested it, so if any test of suit is failed then it re-runs immediately (I mean the exact failed test)