Comments (5)
Hi @8dspaces -
According to the README, you should use gradlew test
command (I don't use Gradle myself, so am not too familiar. If you happen to also have Maven, I can help you with that :))
For questions, please join us on Slack: https://cucumberbdd-slack-invite.herokuapp.com/
from cucumber-java-skeleton.
Thanks @mlvandijk
tried more on the skeleton
download zip directly
- mvn test Fail
- ./gradlew test Fail
Clone the Repo
- mvn test Pass
- ./gradlew test Fail
hope someone can check and fix it if it can be reproduce
anyway, i will use the solution that can pass
thanks for your checking
from cucumber-java-skeleton.
Hi @8dspaces -
Thanks for the update! I'll give it a try with Gradle myself and see if I can figure it out ;)
Glad you have a version that works for now!
from cucumber-java-skeleton.
Update: Am getting the same build results with maven (build success) and gradle (build failed) in my cloned project. However, the cucumber output is the same for both:
1 Scenarios (1 undefined)
3 Steps (2 undefined, 1 passed)
This is because only the first step is defined; the other two are pending. It appears that Maven interprets this as Build Success while Gradle interprets it as Build Failure.
I'd have to look into this more, as I'm not too familiar with Gradle. My working assumption is that you should be able to use either (as you'll implement the tests before incorporating into your build process).
from cucumber-java-skeleton.
There is a subtle difference between the maven and gradle outputs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> One or more feature files failed to parse. See error output above
It tries to parse a feature file. Running with --debug --stacktrace
shows there is another plugin involved that tries to run cucumber directly rather then through JUnit.
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.api.GradleException: One or more feature files failed to parse. See error output above
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.commercehub.gradle.cucumber.CucumberRunner.run(CucumberRunner.groovy:98)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.commercehub.gradle.cucumber.CucumberRunner$run.call(Unknown Source)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.commercehub.gradle.cucumber.CucumberTask.runTests(CucumberTask.groovy:40)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:136)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:129)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:118)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:623)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:606)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
23:01:43.390 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
I reckon removing com.commercehub.cucumber-jvm
and related config from gradle would solve this problem.
from cucumber-java-skeleton.
Related Issues (20)
- 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
- WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main HOT 13
- 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.