Skip to content
Advertisement

test framework quit unexpected, Cucumber tests Kotlin intellij

I am trying to run test cases in cucumber for testing a mobile application using IntelliJ. The project code is in kotlin and I am using appium server to run the test case on android emulator. The test cases were working fine but after taking last pull request from project repository on github, the test cases are not running Cannot find cucumber cli main file

I am getting Error: Could not find or load main class cucumber.cli.Main

JavaScript

so far I have tried. Deleting and restoring configurations, adding previous version of cucumber in pom.xml file, giving file path in the test runner.

  1. https://stackoverflow.com/a/52948984/10047785
  2. https://stackoverflow.com/a/53700597/10047785
  3. https://stackoverflow.com/a/61748652/10047785

I am still getting errors. I think this can be a problem due refactorized project after pull request. Any help in solving this issue will be appreciated.

pom.xml

JavaScript

4.0.0

JavaScript

Advertisement

Answer

Solved: This was a hybrid project for both mobile and web. I was able to solve it by opening the mobile project separately in intelliJ (I had to open sub directory). So this way my project was able to locate the cucumber file and Java jdk.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement