IntelliJBehave icon indicating copy to clipboard operation
IntelliJBehave copied to clipboard

Plugin doesn't find steps in a dependent jar

Open skurlow opened this issue 10 years ago • 7 comments

We are trying to split some of our step classes into a separate maven module that is in a separate maven project. For those step classes that we have moved into the new module their steps are showing up in our story files with a red underline meaning the plugin thinks the steps are not defined.

But that is not true. ;-) When we run our story using a jbehave runner we can see jbehave is able to find the steps. So the issue is with the jbehave support plugin v1.3.

Now this new module (jar) is added as a maven dependency and when looking at IntelliJ's module dependencies tab I can see our new jar (containing our steps) is listed. According to the plugin's wiki page it says the jbehave support plugin should scan the module classpath but it doesn't seem to be or I don't really understand what that statement on the wiki means???

Alternatively can you point me to the code where I can change the jbehave support plugin to widen its scan?

Otherwise this is a fantastic plugin and would be lost without it. Thanks so much. :)

skurlow avatar Apr 01 '14 00:04 skurlow

+1 moved common steps implementation to separate module and discovered these issue ...

longtimeago avatar Apr 22 '14 11:04 longtimeago

Can you please give an example of relevant dependency tree? For example if: A - maven module with JBehave unit tests B - maven module with stories C - maven module with steps Are some of the above modules overlap? What are the dependencies in your case?

Thanks

harley84 avatar Apr 23 '14 07:04 harley84

Ups ... looks like it was dependency issue. Sorry for boring you :(

longtimeago avatar Apr 27 '14 17:04 longtimeago

Hey,

In our project we're using steps from different dependencies (from other projects) and sadly this great plugin is unable to "see" those steps... (cannot use auto-complete and also mark them as "No definition...."

Can you point me to the code?

Thanks

Shnitzelil avatar Jul 17 '14 15:07 Shnitzelil

Hi,

I am facing the same issue. My project is using dependent jars, which contain the step defs. JBehave plugin does not find the step def, i.e. when I ctrl+click the step it does not take me to the dependent codebase.

Longtimeago, if you have solved the issue could you please help.

Thanks

simpleTester avatar Jul 30 '14 11:07 simpleTester

Sorry everyone, I do not have time recently to address the issues. @Shnitzelil , @simpleTester - can you please address my previous comment regarding the dependency tree, or even better, upload a small project that reproduces it?

Thanks in advance

harley84 avatar Aug 19 '14 20:08 harley84

Same issue here. Seems that when the steps project is not opened in the same project as a module, it works. When it is opened as a module, however, the steps cannot be found.

stahloss avatar Apr 13 '15 10:04 stahloss