You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in projectB there are a number of classes and resources that are only required at runtime. Unfortunately the jars for these projects are not build when I run the cucumber task, resulting in resources not being found etc.
How do I go about fixing this? Am I doing something wrong or is it a bug?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi,
The Cucumber plugin does not change anything to your testCompile or testRuntime deps or their interpretation. cucumberCompile and cucumberRuntime just depend on those.
Make sure your test classes compile correctly even without any Cucumber stuff.
If you could come up with some sample project replicating your issue, I should be able to look into it.
Sorry for the long delay in responding. I have made a small Gradle multiproject that reproduces the problem. I have added it to github here: https://github.com/wursley/cucumber-test-dep
Here's a short summary of the code:
There are two projects 'proj1' and 'proj2'.
Proj1 contains:
the cucumber features and glue code
a Junit test that does the same as the cucumber glue code
a testRuntime dependency to proj2
Proj2 contains:
a class with a method that prints a message to stdout
To reproduce the problem run:
gradlew clean :proj1:cucumber
Compare this with running:
gradlew clean :proj1:test
You'll see in the Gradle output that when running :proj1:cucumber that the code for proj2 is not compiled.
Hi,
I have a gradle project using the cucumber plugin that has a testRuntime dependency like this:
in projectB there are a number of classes and resources that are only required at runtime. Unfortunately the jars for these projects are not build when I run the cucumber task, resulting in resources not being found etc.
How do I go about fixing this? Am I doing something wrong or is it a bug?
Thanks in advance!
The text was updated successfully, but these errors were encountered: