Eclipse does not find step defs that are in external jars/imported by a maven.
I have a problem with my project at work where I have step defs that are in a different project. I imported them as jars using maven. I can see them listed in the dependency section in eclipse so they are definitely imported. However, In the feature file, it says the step defs are not found. And when I run the runner, it tells me to implement the missing steps which should be in the external jars
I found this in the official documentation, however I don't see cucumber user settings as an option in eclipse. https://github.com/cucumber/cucumber-eclipse/wiki/Reusing-Of-Step-Definitions-From-External-Class-Path-Dependencies(JAR-POM...etc)
Cucumber eclipse plugin version - 1.0.0.202001082311 (most recent one in the marketplace)
Any help would be greatly appreciated, Thanks!
@Abdallah-Aleies, I developed this feature and was worked perfectly with older-plugin version (0.0.23). Few changes are made on this feature with our latest plugin version.
@qvdk, Could you please add some suggestions on this feature and it's configuration details supported with the latest plugin version? If this feature is not working properly then I would like to support/enhance in the latest plugin version.
Thanks, ~Girija
Hello everybody,
This is probably due to the issue #391
A fix was released in march in the version 1.0.0-20200311143818.110.
Could you update your plugin with our snapshot update site https://github.com/cucumber/cucumber-eclipse-update-site-snapshot
@girijant how works the Eclipse Marketplace ? Is it synchronized automatically with one of our update site ?
@qvdk , The snapshot-update site is automatically synchronized in market-place with the https://github.com/cucumber/cucumber-eclipse-update-site-snapshot. But I've to check the version details from market-place. I will update once the version part is fixed.
@qvdk, I have fixed the plugin-version from Eclipse-marketplace.
Each time I used to recreate below files from the 'cucumber-eclipse-update-site-snapshot/gh-pages' branch for every release of a newer plugin version(ex. 1.0.0.202005150629): 1. index.html 2. site.xml: Manually updated the Feature 'url' and 'version' for every release of a newer plugin version.
So requesting you to follow below tasks for every release in order to synchronized the newer plugin version automatically with our Eclipse-Marketplace: a. Always keep those files (index.html, site.xml) mandatorily under 'cucumber-eclipse-update-site-snapshot/gh-pages' branch. b. From 'site.xml' file, manually update both Feature 'url' and 'version' with the newer-plugin-version
It would be apprecaited if you can automate this activities from the 'cucumber-eclipse-update-site-snapshot/gh-pages' branch for every release of our newer plugin version.
Also raised an improvement ticket for this for the future reference purpose.
Thanks, ~Girija
Hello @girijant
The cucumber-eclipse-update-site-snapshot is fully automated and deploy by Travis-CI. This update site is automatically updated each time a contribution is merged on master if the version ended by -SNAPSHOT.
I never update it manually. I think it should not have manual step to deploy. If the files are required on the eclipse-update, the files should be generated curing the build of the eclipse update site.
There are also a cucumber-eclipse-update-site dedicated for releases, when the version does not end by -SNAPSHOT.
@qvk,
Thanks for your clarifications. As both of these files(index.html and site.xml) are required on the eclipse-update, so these files need be auto-generated during the every build of the eclipse update site. Please add those files in the required branch which can be auto-generated during the every build of the eclipse update site. If you can suggest the branch details then I may add those files into the branch.
Thanks, ~Girija
@girijant @qvdk Was this fix pushed to Eclipse Market place version? Because I have the latest update installed and it still does not work.
Also I found this documentation. However I do not see this as an option in eclipse when I follow directions.
Hello @Abdallah-Aleies
The fix is available in the version 1.0.0-20200515062956.
An issue #406 need to be solved to update automatically the Eclipse Marketplace. But you can install the latest version from our Eclipse update site. See instructions.
In the latest version, you only need to convert your project as cucumber project. Then, the step definitions scan will be launched.
@qvdk I have installed the newest version manually from the instructions.. However the same problem still exists.
This (as well as #391) still persists on the latest marketplace version ( 1.0.0.202010091040 ). Changing used classes for the deprecated cucumber.api package makes steps recognized by the plugin.
To help anyone that is struggling with recognizing step defs, they need to be implemented:
- Same project or JAR (no Eclipse project reference)
- Old annotations or interfaces within package
cucumber.api(noio.cucumber)
Forgot to mention that the package problem also breaks StepDefs on the same project (not on imported JAR).