IntelliJBehave
IntelliJBehave copied to clipboard
@Alias support
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.
Is it reproducible for you? I couldn't reproduce it in witspirits fork.
@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 , Hi What fork of the plugin do you use? Please try to use the witspirit's fork - "JBehave Support" plugin in Idea.