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?
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
@@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!
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
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
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
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
The most entertaining "Cucumber Spring Boot tutorial" till date. Thank you for the great tutorial.
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 ♥️
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?
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
You're a good teacher.
Cheers Bojan!
Thanks for the video! Was very helpful and entertaining!
Hey! Could you share the end result of this project? I found only starting project in the description of this movie :/
What do you do if Application.class is in a different module. How do i replicate it.
Thanks dude! It's so awesome!
Hi Shane, Thanks for this video. Can you upload another with java 13 or later?
Hey Shane, what advantages Spring boot cucumber have over the widely used Rest Assured Java library?
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
@@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!
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.
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
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
Thanks for a wonderful Video. You are awesome
you are awesome!!
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
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?
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
I do read that bit.
What IDE are you using?
Hi,
It's Intellj Idea - if you do Java development, I highly recommend it.
Thanks
Shane
Your github repo is empty.
It takes more time to write test cases than to develop the feature :')
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?
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
Another video is meme, now another meme in java 🤣