Test framework quit unexpectedly - Java - IntelliJ IDEA
Answered
I have a very simple tutorial of cucumber that I can't get to run properly, keep getting "Test framework quit unexpectedly". I have looked through the forums and researched all of the issues related to this and I can't find anything to fix the issue I am having. Also I am not getting anything in the console pointing me to any specific errors.
https://github.com/jobrandes/CucumberBasics
Thanks for any help.
JB



Please sign in to leave a comment.
Check this https://www.youtube.com/watch?v=AkV71TchbgM. Note the runner class.
Thank you Serge. I tried to add the CucumberRunner.java file and definitely got further than I had before. I do not have much/if any java experience so think I need to learn more as I'm running into a classpath error and have yet to solve it.
I added it like the following:
I am getting the following error:
I am guessing it may be because of my folder structure though I have rearranged it in multiple ways and still have the same issue. I looked at the configuration for the runner but did not change anything, unsure just yet if I need to:
Thanks again for any help.
JB
Check this sample for the properly configured project: https://github.com/hmtmcse/software-test/tree/master/habijabi/cucumber-jvm-maven-console.
Reimport Maven project so that it downloads the dependencies, right click in the .feature file to run the test, even runner class is not needed this way. Note that feature files reside in the resources directory.
I got it! I specified the location of my feature file in the @CucumberOptions.
Now it works!
Thanks!