5

When i run my cucucumber Test via Runner class, they run fine but when Run via Feature file i get this error in Intellij Idea 2020.3

Test framework Quit unexpectedly

enter image description here

Below is a successful run via Runner class

enter image description here

please let me know where i am going wrong when running via feature file

Also attaching the configuration after looking at existing answers

enter image description here

here is the code https://github.com/gauravkhuraana/RestAssured_ToolsQA

Gaurav Khurana
  • 3,423
  • 2
  • 29
  • 38

1 Answers1

1

Thank you @y.bedrov for the guidance

Adding the below in Main Class for configuration

io.cucumber.core.cli.Main

and adding just the folder name (not full path) for StepDefintion in configuration has fixed this problem

enter image description here

Gaurav Khurana
  • 3,423
  • 2
  • 29
  • 38