IntelliJBehave
IntelliJBehave copied to clipboard
Speed up if tables are involved and changed highlighting of parameters in steps
I made a bug fix in JBehaveStepsIndex. If tables where passed to steps, the plugin was slowed down to a felt freeze of the IDE. My change cuts the steptext till the beginning of the table. E.g. "Given A table: | a | b| | c | d | " is cut down to: "Given A table:". Then this cut down text is matched against the stepdefinitions. We had this problem, because we have more than 800 stepdefinitions and many tables. The tables have more than 4 rows and 4 columns.
The second change is a move of the parameters highlighting from UndefinedStepInspection to the StoryAnnotator (including a bug fix).
The third change includes some resolving of deprecation issues and null-pointer checking.
All those changes were done for Intellij 14.0.2 and JDK 1.7.0_71
I changed the parser to have its own token for "GivenStories:". Now, the file-path of a GivenStory is a token and has its own text-style. You can ctrl+click it now and you will jump to the specified file. There is also a completion for GivenStories. Additionally, I made the settings project based.
Thanks, I'll take a look later.
On Tue, Feb 10, 2015, 12:59 Dinis de Brito e Cunha [email protected] wrote:
Reopened #26 https://github.com/witspirit/IntelliJBehave/pull/26.
— Reply to this email directly or view it on GitHub https://github.com/witspirit/IntelliJBehave/pull/26#event-233120884.