Testing Using Cypress And GitHub Actions: From Zero To Hero

Sdílet
Vložit
  • čas přidán 11. 09. 2024
  • This video creates a new project and adds a few default Cypress tests. Then it creates a repository on GitHub and runs the Cypress tests using Cypress GitHub Action. I then show how to debug a failed test using test artifacts stored on GitHub after each test run. Find the full source code at github.com/bah... and for more answers, use cypress.tips/s...

Komentáře • 31

  • @animeshkr29
    @animeshkr29 Před rokem +2

    Very well explained, it's super easy for new guys in Cypress ,
    I remember when i was trying to integrate Git Hub action I was totally confused with the online help about Git Hub action integration with Cypress ,
    But today after watching your video i am feeling wish i could see this video before

  • @gustavoalmeida1938
    @gustavoalmeida1938 Před rokem +2

    The video was awesome and the explanation was easy to understand.
    I'm new to Cypress and i had a lot of troubles to push to GitHub, but now I did it. Thanks for the video.

  • @Ryyza7
    @Ryyza7 Před rokem +2

    Thank you very much, my company that i work right now don't do any testing and whenever i go to another interview they always ask me about ci/cd and testing. So i am self studying about cypress right now. Your video is very helpful

    • @gleb
      @gleb  Před rokem +2

      Yup, also read glebbahmutov.com/blog/cypress-skills-ladder/

  • @adejota
    @adejota Před rokem +1

    Very good explanation, straight to the point. Helped a lot

  • @robertmichellemoranvillegasBSC
    @robertmichellemoranvillegasBSC Před 6 měsíci +1

    Well explained, it was great!

  • @NeverCodeAlone
    @NeverCodeAlone Před rokem

    Hi Gelb, very nice vidoe and inspiration. Thx a lot for zour open source passion!!

  • @rwojciechowski
    @rwojciechowski Před rokem +4

    Hi, could you please prepare similiar video but using Gitlab CI/CD?

    • @Konqer
      @Konqer Před rokem

      Hej ja ci mogę pomóc

  • @Konqer
    @Konqer Před rokem

    Hey Gleb, great hands-on explanation as always. One think - what's git done, never used it

    • @gleb
      @gleb  Před rokem +2

      It is one of my Git aliases, see glebbahmutov.com/blog/git-aliases/

    • @Konqer
      @Konqer Před rokem

      @@gleb Thanks!

  • @davidmiles2024
    @davidmiles2024 Před 7 měsíci

    I think this isn't working for me, I have two folder in my repo which is client and server, and I created GitHub action on the root folder, when I ran it on push it always throw error, my problem how can I make it to only work on client folder

    • @gleb
      @gleb  Před 7 měsíci

      I am sorry it is not working for you. Can you read the Cypress github action documentation? Or set up a repo showing the problem and open an issue in the relevant github repo?

  • @faithbaisa1642
    @faithbaisa1642 Před 5 měsíci

    Hello sir thank you for the awesome video! ☺️ We currently have the same results summary as you have in this video at the moment. Is there a way to put like a passing rate on beside the passed, failed ones? Or an overall summary of all the runs like for example we have 1 feature file each job, and we have 6 jobs, total 100 test cases. How do we create a summary with 99 tests passed 1 test failed 99% pass rate something like that? 🙏

    • @gleb
      @gleb  Před 5 měsíci

      you mean you have several machines running the tests and need to combine the reports?

    • @faithbaisa1642
      @faithbaisa1642 Před 5 měsíci

      In a way yes. 1 workflow, 6 jobs, 6 feature files, 100 test cases total. Can we have one summary we can take a look for easier documentation? Contains pass rate, pass, failed numbers of 100TCs combined.

    • @gleb
      @gleb  Před 5 měsíci

      So you need a single report that merges results from the individual jobs (not from the previous jobs, that would be a historical test report portal), see glebbahmutov.com/blog/the-awesome-battle/

    • @faithbaisa1642
      @faithbaisa1642 Před 5 měsíci

      Thank you sir! ☺️ Lemme check it out

  • @johnlima8499
    @johnlima8499 Před rokem +1

    Legal! 👍

  • @jawadshaikh5024
    @jawadshaikh5024 Před 7 měsíci

    I have done all the steps u said but in Action not change Anything, can you help on this

    • @gleb
      @gleb  Před 7 měsíci

      Can you provide a lot more details?

  • @27sosite73
    @27sosite73 Před 9 měsíci

    thank you kind russian dude

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

      I do what I can!

    • @27sosite73
      @27sosite73 Před 9 měsíci

      okay ty
      @@gleb

  • @alexsoft5260
    @alexsoft5260 Před rokem

    Cool. What about gitLab from zero. Thanks

    • @gleb
      @gleb  Před rokem

      You can find pretty good examples for gitlab on Cypress site, plus unfortunately GitLab does not have reusable actions like github, making easy config more difficult

  • @JamesPhanJP
    @JamesPhanJP Před rokem +1

    awoseme

  • @relax_habibi
    @relax_habibi Před rokem

    ci.yml doesn't work

    • @gleb
      @gleb  Před rokem

      I don't know what "doesn't work mean", please provide details

    • @jawadshaikh5024
      @jawadshaikh5024 Před 7 měsíci

      not change anything in action
      @@gleb