shashank rao
shashank rao

Reputation: 1

Selenium Code (CUCUMBER) not getting executed on Intellij IDEA

When I run my Cucumber test runner file on Intellij IDEA, I am not able to see any output on the console except the message "Process finished with exit code 0". The actual code will not run can anyone please help me?

enter image description here

mvn test error: mvn test error

Project structure: Project structure

Entire Screenshot: Entire Screenshot

Upvotes: 0

Views: 619

Answers (1)

Alexey R.
Alexey R.

Reputation: 8676

There are several places to fix in your project:

  • Better to keep your test runner and step definitions in tests but not in main
  • Folder that contains feature files, package where your test runner is located and package where your step definition files are located have to match in a certain way:
    • If your test runner is in package my.test.package then your step definition code has to be placed either in my.test.package or to the sub-packages
    • If your test runner is in package my.test.package then your feature files have to be placed to the folder resources/my/test/package or sub-folders.

Upvotes: 1

Related Questions