IntelliJBehave安装与配置.docx_第1页
IntelliJBehave安装与配置.docx_第2页
IntelliJBehave安装与配置.docx_第3页
IntelliJBehave安装与配置.docx_第4页
IntelliJBehave安装与配置.docx_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

IntelliJBehave安装与配置IntelliJBehave is an IntelliJ IDEA plugin for JBehave.InstallationYou can either install the plugin from within IntelliJ. Alternatively, download the binary zip file from downloads, unzip the contents at /plugins and restart IntelliJ.ConfigurationGo to IntelliJ Settings - IDE Settings - File Types, select JBehave story files and ensure that *.story is a registered pattern.FeaturesSyntax HighlightingWe do not support Multiline scenario text Using Given storiesNavigation to Step DefinitionYou 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 textWe do not support Custom parameter prefix apart from the default $ for parameterized stepsError HighlightingError is highlighted if a step used in the story was not defined.Line Comment/UncommentYou can comment/uncomment lines in the story file by using cmd+/ for mac or ctrl+/ for win/linux.Create New JBhehave StoryYou 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 StoryYou dont 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 TemplateWhen 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 TemplatesSupported LanguagesWe support step definitions written in Java or Groovy. Advanced FeaturesCode InspectionsIn any decent-sized project, with hundreds and thousands of step definitions, it is practically impossible to find unused steps. Text search is too cumbersome. Also, for parameterized steps, text search hardly works. With IntelliJBehave, you can use code inspections to find unused steps. Although, undefined step usages are highlighted as an error in the story files, you can see a report of all the undefined steps in the whole project though code inspection as well. If you go to IntelliJ Settings - Project Settings - Inspections, you will find that IntelliJBehave has added two new inspections Unused step declaration and Undefined step under a new category JBehave and has enabled them by default. Here, apart from other things, you can change the severity level of the probable issues that these inspections will find.When you perform code inspections from menu option Analyze - Inspect Code. or by one the other several possible ways, the results are displayed showing steps that are not being used in any of the story files in your project. If you just want to run JBehave inspections, you can go to menu option Analyze - Run Inspection by Name. and search for JBehave. Running *.story FilesDescription coming up soon.Feature Wish-list Auto-complete steps Find usages from step definition Rename refactoring Safe delete Quick fix on errors Code folding for scenarios Live templates for stepsSupported IntelliJ IDEA VersionsIntelliJBehave was tested for 10.5.x and above but might work on lower versions.Change Log1.2 Support for IntelliJ IDEA 11.x Code inspection to report undefined steps Support for table parameters Various bug fixes1.1Find unused steps through code inspection1.0Error Highlighting in story if step was not definedFeedbackPlease provide your comments and rating at IntelliJBehaves official IntelliJ Plugin page. If you find any bugs or would like to suggest a new feature, please create a new issue with adequate description and a code patch if possible. ContributeFeel free to fork the code. If you would like to contribute directly to the trunk, send me your patch.LicenseCopyright 2011 Aman KumarLicensed 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/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed un

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论