How to auto complete the step definitions in Karate

Viewed 414

We all know that Karate has built in Gherkin commands Given, When, Then. And user does not have to write the Step definitions for the same. Is it possible that I can get a auto complete list of all the stepd's as and when I start typing in similar to what we have in traditional cucumber.

For ex: If i start typing "match" it will list down the step definition for me in the auto complete dropdown

1 Answers

This depends on the IDE + plugin combination that you have. You get some level of autocomplete in Eclipse and IntelliJ - see below an example of IntelliJ:

enter image description here

That said, let me set expectations. Karate is a loosely-typed scripting language and currently does not have the level of "intellisense" etc. that you may be used to in other languages. This is on the roadmap, so maybe you would like to contribute code :)

The 2 reasons why we don't consider this the highest priority is

Related