Comments (13)
I Have the same problem. but its not problem of the project. In stack overflow has the solution:
In the official SmartBear forum, the creator and lead developer of Cucumber Open says:
"You can safely ignore this warning. All it means is that cucumber-eclipse has not yet been updated to use Cucumber's new package structure. We have an open issue about this. If you feel strongly about it you can help us by submitting a pull request to cucumber-eclipse."
I copy this of: https://stackoverflow.com/questions/57177823/exception-in-thread-main-after-updating-cucumber-version
from cucumber-java-skeleton.
If you guys are getting message "0 Scenario 0 Steps" with "You are using deprecated Main class. Please use io.cucumber.core.cli.Main" , just check scenario syntax in the feature file such as Scenario: (colon without white space) and only one white space after Given, And, Then. It's not main class issue, just syntax of feature file issue.
from cucumber-java-skeleton.
Thanks for repeating my explanation @paulohg6 - closing this.
from cucumber-java-skeleton.
Editing the run configuration under the 'Run/Debug Configuration' menu in IntelliJ resolved it for me. The main class was set to cucumber.api.cli.Main and I changed it to io.cucumber.core.cli.Main. Found the answer here.
from cucumber-java-skeleton.
Jun 26, 2022 11:14:19 AM cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Scenario: Launch browser # src/test/resources/features/QA.feature:4
0 Scenarios
0 Steps
0m0.551s
?????????????????????????????????????????????????????????????????????????????????????
? Share your Cucumber Report with your team at https://reports.cucumber.io ?
? Activate publishing with one of the following: ?
? ?
? src/test/resources/cucumber.properties: cucumber.publish.enabled=true ?
? src/test/resources/junit-platform.properties: cucumber.publish.enabled=true ?
? Environment variable: CUCUMBER_PUBLISH_ENABLED=true ?
? JUnit: @CucumberOptions(publish = true) ?
? ?
? More information at https://cucumber.io/docs/cucumber/environment-variables/ ?
? ?
? Disable this message with one of the following: ?
? ?
? src/test/resources/cucumber.properties: cucumber.publish.quiet=true ?
? src/test/resources/junit-platform.properties: cucumber.publish.quiet=true ?
?????????????????????????????????????????????????????????????????????????????????????
from cucumber-java-skeleton.
Please, Someone help me solve above mentioned issue !!
from cucumber-java-skeleton.
Did u get the answer??? pls help me
from cucumber-java-skeleton.
You are using deprecated Main class. Please use io.cucumber.core.cli.Main
any solution.
from cucumber-java-skeleton.
Did anyone get a solution please post a solution here
from cucumber-java-skeleton.
See the comment above from @paulohg6 with a link to StackOverflow @reena112556 @sunilsds @ajairaina @Arundattkaushik
from cucumber-java-skeleton.
While i was adding features and gave compile facing this issue . Please help me on this
Apr 30, 2023 8:42:46 AM cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Scenario: Testing Signup Functionality # src/test/resources/Feature/Signup.feature:3
0 Scenarios
0 Steps
0m0.518s
?????????????????????????????????????????????????????????????????????????????????????
? Share your Cucumber Report with your team at https://reports.cucumber.io ?
? Activate publishing with one of the following: ?
? ?
? src/test/resources/cucumber.properties: cucumber.publish.enabled=true ?
? src/test/resources/junit-platform.properties: cucumber.publish.enabled=true ?
? Environment variable: CUCUMBER_PUBLISH_ENABLED=true ?
? JUnit: @CucumberOptions(publish = true) ?
? ?
? More information at https://cucumber.io/docs/cucumber/environment-variables/ ?
? ?
? Disable this message with one of the following: ?
? ?
? src/test/resources/cucumber.properties: cucumber.publish.quiet=true ?
? src/test/resources/junit-platform.properties: cucumber.publish.quiet=true ?
?????????????????????????????????????????????????????????????????????????????????????
from cucumber-java-skeleton.
If you guys are getting message "0 Scenario 0 Steps" with "You are using deprecated Main class. Please use io.cucumber.core.cli.Main" , just check scenario syntax in the feature file such as Scenario: (colon without white space) and only one white space after Given, And, Then. It's not main class issue, just syntax of feature file issue.
GoodOne Helpful.
from cucumber-java-skeleton.
Related Issues (20)
- download and run gradle build fail HOT 5
- different branches for gradle / maven? HOT 2
- Project did not run HOT 10
- Runs fine in gradle; loses step definitions in IntelliJ HOT 3
- gradle version does not work HOT 1
- Upgrade Java Skeleton to V5
- Person class doesn't exist HOT 2
- Help with this Cucumber Scenario?? HOT 7
- How to disable cucumber message in eclipse HOT 1
- Help with this Cucumber Scenario??
- mvn test BUILD SUCCESS instead of FAILURE after adding TestNG HOT 1
- Action Required: Fix Renovate Configuration
- Help Needed: Cucumber Test with Spring Boot from Executable Jar HOT 1
- Dependency Dashboard
- Failed gradle test task from the skeleton project. HOT 4
- Cucumber multiple tags not supported for the version 7.9.0 using Junit runner HOT 1
- UndefinedStepException HOT 2
- StepDefinitions should have at least one assert to call it as BDD test HOT 2
- `Step undifined` for demo project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cucumber-java-skeleton.