Search code examples
karatecucumber-java

Karate framework using IntelliJ : Undefined Step Reference in feature file but working from command line


I have setup Karate framework by creating Maven project using archetype. Everything went fine and I am able to run the tests from command line. All good all well here. Now the question, though I am having Cucumber for Java plugin installed and enabled, I am getting issue saying that "Undefined Step Reference" in feature file and also not able to trigger the scenario from feature file. Below is the screenshot. enter image description here

Really I am not understanding how its working from commandline but not from feature file. Am I missing something here?


Solution

  • Karate is not Cucumber. There is a specific plugin for Karate in IntelliJ which give you a better experience to develop and run tests from within the IDE.

    But Karate is designed to work on the CLI / command-line, this is how teams can run tests smoothly in CI / CD.