Skip to content
kumaraman21 edited this page Dec 15, 2011 · 22 revisions

IntelliJBehave is an IntelliJ IDEA plugin for JBehave.

Installation

You can either install the plugin from within IntelliJ. Alternatively, download the binary zip file from downloads, unzip the contents at <IntelliJ Home>/plugins and restart IntelliJ.

Configuration

Go to IntelliJ Settings --> IDE Settings --> File Types, select JBehave story files and ensure that *.story is a registered pattern.

Register Story Filetype

Features

Syntax Highlighting

Syntax Highlighting

We do not support

  • Multiline scenario text
  • Parameterized scenarios with example tables
  • Using Given stories

Navigation to Step Definition

You can jump to the step definition from the step usage in the story by doing either of the following

  • Press cmd+B for mac or ctrl+B for win/linux when the cursor is on the step usage text
  • Perform cmd+click for mac or ctrl+click for win/linux on the step usage text

We do not support

  • Custom parameter prefix apart from the default $ for parameterized steps

Error Highlighting

Error is highlighted if a step used in the story was not defined.

Error Highlighting

Line Comment/Uncomment

You can comment/uncomment lines in the story file by using cmd+/ for mac or ctrl+/ for win/linux.

Line Comment/Uncomment

Create New JBhehave Story

You can create a new JBehave story file by selecting a folder in the project explorer and doing one of the following

  • Press cmd+alt+S for mac or ctrl+alt+S for Win/Linux
  • Right click on the folder, select New and the JBehave Story

You don't need to provide .story extension when asked to provide the name. Also the story would be created by using the Story File Template.

Story File Template

When you create a new story file the default contents are taken from the file template defined for story files. To see/modify the story file template go to IntelliJ Settings --> IDE Settings --> File Templates

Story File Template

Supported Languages

We support step definitions written in Java or Groovy.

Advanced Features

Running *.story Files

Description coming up soon.

Supported IntelliJ IDEA Versions

Change Log

1.0

Error Highlighting in story if step was not defined

Feedback

Contribute

License

Copyright 2011 Aman Kumar

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Clone this wiki locally