IntelliJBehave icon indicating copy to clipboard operation
IntelliJBehave copied to clipboard

@Alias support

Open brent777 opened this issue 12 years ago • 3 comments

Is there a way to make the code inspection support the @Alias annotation? Currently, if I have a step defined and it has an alias, then in my story files where I use the alias it highlights it as an error.

Perhaps this support already exists and I am just unaware of the necessary config changes that need to be made on my side.

brent777 avatar Apr 30 '13 08:04 brent777

Is it reproducible for you? I couldn't reproduce it in witspirits fork.

harley84 avatar Feb 07 '14 17:02 harley84

@harley84 Hi! I have a scenario for the issue:

    @Given("the upper limit is set at <limit> for <currencyPair>")
    @When("the upper limit is set at <limit> for <currencyPair>")
    @Alias("the upper limit is set at $limit for $currencyPair")

In this case alias works for When steps. So, Given steps are not found. If Alias follows Given

    @Given("the upper limit is set at <limit> for <currencyPair>")
    @When("the upper limit is set at <limit> for <currencyPair>")
    @Alias("the upper limit is set at $limit for $currencyPair")

than When steps are not found

In both cases JBehave passes scenarios without PENDING, so this is plugin issue

longtimeago avatar Aug 19 '14 08:08 longtimeago

@longtimeago , Hi What fork of the plugin do you use? Please try to use the witspirit's fork - "JBehave Support" plugin in Idea.

harley84 avatar Aug 19 '14 20:08 harley84