Cut Cypress Execution In Half By Running Tests In Parallel Using cypress-split And GitHub Actions

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 41

  • @MathiTamilGaming
    @MathiTamilGaming 9 месяцев назад +2

    Thankyou Gleb, Please do update the Split repo frequently upon Cypress updates, We are heavily dependant on the Split plugin, Thankyou So So So much, we reduced 45+mins tests into 20 mins

    • @gleb
      @gleb  9 месяцев назад +2

      There is Renovate set up there, so it keeps testing and upgrading it

  • @user-he8qc4mr4i
    @user-he8qc4mr4i 9 месяцев назад +1

    Priceless! Thank you for sharing

  • @fauzisunarya3029
    @fauzisunarya3029 3 месяца назад +1

    hello, is it possible to split based on folders, not based on the number of files, for example, in the e2e folder there are two folders, folder A and folder B, can you split folder A and folder B, so when you run the cypress script the split is based on the folder name, not based on the number of files like in the video

  • @prashantabellad
    @prashantabellad 9 месяцев назад

    Hey Gleb, this is great. Does the plugin create reports and link to test screenshots and videos?

    • @gleb
      @gleb  9 месяцев назад +1

      No, but you can do it easily via github.com/bahmutov/cypress-workflows

  • @canaldoguetoberra
    @canaldoguetoberra 3 месяца назад

    Does this work on Azure Pipelines and Teamcity?

  • @seidhassen1623
    @seidhassen1623 5 месяцев назад

    hey Gleb, Thanks for the tip. I use the plugin on bitbucket file but i keep getting "cypress encountered an error while parsing the argument --env". could you please help ?

    • @gleb
      @gleb  5 месяцев назад

      Can you open an issue in github.com/bahmutov/cypress-split with details

  • @karthicksudhan9477
    @karthicksudhan9477 6 месяцев назад

    Hey Gleb, am using Jenkins for CI/CD, does this plug-in supports jenkins. and can i run multiple threads of specs in the same machine?

    • @gleb
      @gleb  6 месяцев назад

      The README has the example. I would not run multiple instances on the same machine without isolation (Docker)

    • @karthicksudhan9477
      @karthicksudhan9477 6 месяцев назад

      @@gleb Thanks for the timely response, but is it possible to run multiple instances (thread)on the same machine?

  • @pranaybharatha1992
    @pranaybharatha1992 5 месяцев назад

    Thankyou Gleb, i have to automate the parallel testing using Spec duration, i have followed your steps, seems , when i check in the gitlab, all the spec file is running in one instance, there are not splitting in to 3 part , in 3part all the spec are running.

    • @gleb
      @gleb  5 месяцев назад

      Please turn on debug logs to see how it finds the specs and decides to split the specs github.com/bahmutov/cypress-split?tab=readme-ov-file#debugging

    • @abus-x8u
      @abus-x8u 2 месяца назад

      hey man any luck?

    • @pranaybharatha1992
      @pranaybharatha1992 2 месяца назад

      @@abus-x8u Successfully executed with cypress split , 40 minute's of pipeline execution reduce to 12 - 13 minute's
      Thankyou so much for the wonderful video

  • @191jassi
    @191jassi 7 месяцев назад

    Hi Gleb, can we use cypress-aplit when running tests locally?

    • @gleb
      @gleb  7 месяцев назад

      Not really, maybe with Docker containers

  • @sbjeetham
    @sbjeetham 8 месяцев назад

    I am trying cypress with cucumber framework, ,, feature file scenario is tagged with different group and i need implement parallel execution in such a way that, the test case within a group should execute test in sequentially and test case accross group need to execute parallely. And the each thread has different login credential.Whether it is possible. Any suggestion?
    Thank you...

    • @gleb
      @gleb  8 месяцев назад

      Sure it is possible. Give me an example repo and I might add a lesson showing how to do it to my cypress-split course

    • @sbjeetham
      @sbjeetham 8 месяцев назад

      @gleb Sorry, I can not share the current repo which I have due to security issues. Whether it is possible achieve the above without using cypress-split plugin. Any sugestions? Thank you

    • @gleb
      @gleb  8 месяцев назад

      @@sbjeetham it is possible I’m sure but I can’t say more than “try reading the readme or look if this example is covered in the cypress-split course” if you don’t give me an example to help with. Even if you have to make a small public repo

  • @ahlem_oussama
    @ahlem_oussama 5 месяцев назад

    Great, does this plugin supports bamboo?

    • @gleb
      @gleb  5 месяцев назад

      I would check the plugin's README, I am sure one can use it for Bamboo github.com/bahmutov/cypress-split?tab=readme-ov-file

  • @harshggupta13190
    @harshggupta13190 7 месяцев назад

    Hi Gleb, great video, but what about the total time taken to run the test job on 2 machines, it is only slightly less than running on single machine, total time has not reduced much

    • @gleb
      @gleb  7 месяцев назад

      Because when you use short tiny specs the overhead of launching the machines, installation or restoring cache and running specs is dominant. In a real tests the overhead would be a much smaller percentage of the total and the savings would be significant.

    • @harshggupta13190
      @harshggupta13190 7 месяцев назад

      @@gleb okay, thanks Gleb, one more question, I want to run specs from only 1 folder and not all folder, so split plugin should only split specs from that one folder only, what is the way to do that?

    • @gleb
      @gleb  7 месяцев назад

      Certainly, I even have a lesson about it in my course cypress.tips/courses/cypress-split

    • @harshggupta13190
      @harshggupta13190 6 месяцев назад

      @@gleb I'm interested in buying the course however saw that split plugin hasn't been listed as a trusted or official plugin by cypress community, what should I do about that?

    • @gleb
      @gleb  6 месяцев назад

      I stopped adding my plugins to the official list after they rejected cypress-data-session plugin due to its name. So the official page does not matter

  • @ruioliveira1031
    @ruioliveira1031 9 месяцев назад

    Hi Glab.
    I would like to understand how can I use a similar strategy for teamcity

    • @gleb
      @gleb  9 месяцев назад

      Look at the README for cypress-split. To help any more I would need access to a TeamCity instance

    • @ruioliveira1031
      @ruioliveira1031 9 месяцев назад

      @@gleb I will take a look and try for my own. If I need further clarifications I contact you

  • @marianrys316
    @marianrys316 9 месяцев назад

    Does it work wirh different platform e.g.: azure or gitlab?

    • @gleb
      @gleb  9 месяцев назад

      What does the README say?

    • @marianrys316
      @marianrys316 9 месяцев назад

      @@gleb there is no need to be rude. simple information, that partial answer is written is in the readme file would be enough.

    • @gleb
      @gleb  9 месяцев назад

      @@marianrys316I did not mean to be rude. Just trying to teach everyone: if you have a question then provable the same question was asked before and I put an answer somewhere public like README or cypress.tips

  • @moueenakhtar
    @moueenakhtar 4 месяца назад

    will it work for google cloud build as well?

    • @gleb
      @gleb  4 месяца назад

      Can you run parallel machines there? If yes, then it should be possible to split the specs across N machines

  • @66699968
    @66699968 6 месяцев назад

    Is it possible to setup this on Azure?

    • @gleb
      @gleb  6 месяцев назад +1

      Yes, I have a lesson showing how to do it on Azure cypress.tips/courses/cypress-split