Contributions
deprecated Main class error while using Cucumber 6.1.1
Hello Team I have installed Cucumber plugin in latest eclipse version and Cucumber which gets installed as plugin is 6.1.1 I have added all the necessary dependencies from the Github location :https://github.com/cucumber/cucumber-java-skeleton/blob/master/pom.xml Now when I am trying to run my feature file which contains a scenario ,I am getting the warning as Jun 23, 2020 7:03:00 PM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main And as a result of this somehow execution is failing ans my output is: Jun 23, 2020 7:03:00 PM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main Scenario: Add a menu item # src/test/java/linkedlearning/cucumbercourse/features/MenuManagement.feature:3 0 Scenarios 0 Steps 0m1.020s Now in the cucumber-core-6.1.1.jar,I can see that it has --cucumber.api.cli package which has Main class and I suppose the execuion is referring to this instead of --io.cucumber.core.cli package which has Main class Can you please help. ThanksSolved4 years agoPlace Cucumber OpenCucumber Open42KViews0likes5Comments