How to Add Cucumber to Spring Boot Java Projects

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

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

  • @PradeepMahato007
    @PradeepMahato007 2 года назад +1

    The most entertaining "Cucumber Spring Boot tutorial" till date. Thank you for the great tutorial.

  • @watchermilo9749
    @watchermilo9749 2 года назад +1

    Parcero, no hay ni un solo vídeo en español sobre cucumber en youtube, has ayudado a un colega Colombiano, te entendí todo.
    Gracias ♥️

  • @KartikKaushik90
    @KartikKaushik90 3 года назад

    Thanks for the nice tutorial. I got excited when you mentioned you'll show testcontainers/docker approach with cucumber, but then broke my heart later when you avoided that. Nevertheless it was a great watch. Do you have by any chance a video for cucumber testing from outside the app's docker container, where cucumber runs in its own separate container, all tied together in docker-compose?

  • @shaileshsingh5664
    @shaileshsingh5664 3 года назад +1

    Hi I tried to replicate same with Intellij and gradle but it says can't find any test for particular class ????
    can you please help

  • @bojanmilojkovic3770
    @bojanmilojkovic3770 3 года назад +5

    You're a good teacher.

  • @TheMrbird123
    @TheMrbird123 2 года назад +1

    Thanks for the video! Was very helpful and entertaining!

  • @Pol31pl
    @Pol31pl 2 года назад

    Hey! Could you share the end result of this project? I found only starting project in the description of this movie :/

  • @lokisky9318
    @lokisky9318 2 года назад

    What do you do if Application.class is in a different module. How do i replicate it.

  • @go_better
    @go_better 2 года назад

    Thanks dude! It's so awesome!

  • @MrAbhishekguda41
    @MrAbhishekguda41 3 года назад

    Hi Shane, Thanks for this video. Can you upload another with java 13 or later?

  • @Imran-M-
    @Imran-M- 4 года назад

    Hey Shane, what advantages Spring boot cucumber have over the widely used Rest Assured Java library?

    • @ShaneLeeCoding
      @ShaneLeeCoding  4 года назад +1

      Hi Imran,
      Spring Boot is not comparable with Rest Assured and it is not necessary to use with Cucumber, I've just used it for this tutorial. Rest Assured only allows you to test REST endpoints. With cucumber you can test anything.
      Hope this helps
      Thanks
      Shane

    • @Imran-M-
      @Imran-M- 4 года назад

      @@ShaneLeeCoding Thank you Shane, we are planning to use Cucumber + Spring boot combination to test Restful API's instead of Cucumber + Rest Assured, hence thought of taking your opinions, cheers!

  • @andrelohmann3453
    @andrelohmann3453 3 года назад

    Hi, nice tutorial. But I have one question. How can I run the Test using macen? running it with "./mvnw clean test" doesn't run the cucumber tests.

    • @ShaneLeeCoding
      @ShaneLeeCoding  3 года назад

      Hi Andre,
      Thanks for you comment
      I knew I'd forgotten something! You can use the maven surefire plugin to run them from maven.
      I'll get a tutorial up about this a some point
      Hope this helps
      Thanks
      Shane

    • @ShaneLeeCoding
      @ShaneLeeCoding  3 года назад +2

      Hi Andre,
      I've just uploaded the video detailing how to get maven to run Cucumber tests here: ruclips.net/video/ZBa9uwadRFs/видео.html
      Hope this helps
      Thanks
      Shane

  • @gmk1217
    @gmk1217 3 года назад +1

    Thanks for a wonderful Video. You are awesome

  • @shivbhakti9814
    @shivbhakti9814 Год назад

    you are awesome!!

  • @shivkumardundi7309
    @shivkumardundi7309 4 года назад

    Are you the brother of Bret Lee ??? Bret Lee is a famous fast bowler from Australia,his brother too played for Australia and his name is Shane Lee

  • @abelalmeida3694
    @abelalmeida3694 3 года назад

    Hello I was trying to get the starting project from the video and it shows account has been suspended? Could you upload to a Git-hub account?

    • @ShaneLeeCoding
      @ShaneLeeCoding  3 года назад

      Hi Abel,
      Thanks for your comment
      I've have moved the files to GitHub - you can find them here: github.com/ShaneLee/code-yogi/tree/master/66.%20Java%20Cucumber/src
      Hope this helps
      Thanks
      Shane

  • @nikitanegi8669
    @nikitanegi8669 4 года назад

    I do read that bit.

  • @sterlingfire4357
    @sterlingfire4357 4 года назад +1

    What IDE are you using?

    • @ShaneLeeCoding
      @ShaneLeeCoding  4 года назад

      Hi,
      It's Intellj Idea - if you do Java development, I highly recommend it.
      Thanks
      Shane

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

    Your github repo is empty.

  • @sidvyas
    @sidvyas 2 года назад

    It takes more time to write test cases than to develop the feature :')

  • @iuri2364
    @iuri2364 3 года назад

    Thanks for the video.
    I have one question, if I want to execute each scenario separated during my tests, what configuration is necessary to do?

    • @ShaneLeeCoding
      @ShaneLeeCoding  3 года назад

      Hi Luri,
      Thanks for your comment
      If you mean have a fresh context for each test then you'll have to add the annotation @DirtiesContext. However, this can be much slower. Another option is to use the @Before annotation (note this is the Cucumber @Before annotation not the JUnit one) to set up a clean up method where you could reset set things without having to reboot the entire Spring context. The Cucumber @Before annotation will execute before each scenario is ran
      Something like this
      @Before
      public void before()
      {
      // clean up here.
      }
      Hope this helps
      Thanks
      Shane

  • @hendra5604
    @hendra5604 4 года назад

    Another video is meme, now another meme in java 🤣