Are there any non-developer tools to edit gherkin files? [closed]

送分小仙女□ 提交于 2019-12-20 08:56:39

问题


Gherkin syntax files are just plain text so any editor such as notepad can be used. However, one of the more important things we are using this for is to provide tables of sample data. Without good formatting options the files become hard to read.

There are some good tools (see: How to get Gherkin syntax highlighting for .feature files in Visual Studio?) for visual studio such as specflow.org or https://github.com/henritersteeg/cuke4vs. Another option for developers using eclipse is discussed at Cucumber IDE for feature writing with autocomplete? However I don't want to require it be installed for our business analysts.

Here is a syntax highlighter files (http://productive.me/develop/cucumbergherkin-syntax-highlighting-for-notepad/) that can be imported into notepad++ but it does nothing for table formatting.

Are there any other options that I might have missed for allowing non-developers to efficiently edit .feature gherkin files?


回答1:


There seems to be a couple of projects in the works.

  • There's a beta of a Gherkin editor here: http://gherkineditor.codeplex.com/ (windows)
  • Cucumber's author has created a web-based gherkin editor (relies on javascript, Ace and Node.js). Perhaps a bit more complicated to set up, but it could be integrated into a CMS or other web-based system.

Neither really substitutes for a conversation with your business domain experts.




回答2:


Here is a non-developer tool. We had a similar requirement and I wanted to have a stab at creating a Chrome extension. It's free and there are no ads. Above all it is cross-platform and requires no technical knowledge to install and run. https://chrome.google.com/webstore/detail/tidy-gherkin/nobemmencanophcnicjhfhnjiimegjeo

I know this is an old post, but I came across it when I was looking for a solution and I didn't think the answers fully addressed the OP's request for a non-dev tool (presumably aimed at a non-technical person).

It's a first attempt, so be kind! Hope someone finds it useful.




回答3:


Notepad++ can highlight Gherkin syntax - see http://productive.me/develop/cucumbergherkin-syntax-highlighting-for-notepad




回答4:


There is an updated eclipse plugin called xgherkins at github for eclipse users




回答5:


If you are using JIRA you can try a plugin called Markin at https://marketplace.atlassian.com/plugins/com.fulstech.jira-gherkin-custom-field/server/overview. It supports both Gherkin and Markdown at the same time, so it is very useful for non-developers.

Disclaimer: I am the creator of Markin.




回答6:


After trying many google results, I found a solution for syntax highlighting in Eclipse. Down load Xtest from http://www.eclipse.org/Xtext/download.html.




回答7:


A good solution for this is to use the Behave plugin for JIRA.

In a good SCRUM team, your domain experts and business owners should define the backlog and describe what they want. It is awesome that you can then immediately add the Given/When/Then definitions for test scenario's.

JBehave also supports getting the .feature files from Google Docs. There is no syntax highlighting plugin for google docs though, so this only takes care of the synchronization problem.




回答8:


I found http://www.bddeditor.com Seems fine for initial phase (they say "BDD Editor is work in progress".



来源:https://stackoverflow.com/questions/8275026/are-there-any-non-developer-tools-to-edit-gherkin-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!