• This repository has been archived on 28/May/2019
  • Stars
    star
    179
  • Rank 214,039 (Top 5 %)
  • Language
    JavaScript
  • Created over 13 years ago
  • Updated over 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Gherkin editor based on Ace and node.js

Gherkin Editor

This is a web based editor for Gherkin - the language Cucumber features are written in. It's based on Ace in the browser and Node.js on the server. It currently supports:

Planned features

  • Simple refactorings, like renaming a step and having all other related steps in the project be renamed too. Related steps would be found using stepdef regexps.

Features that would be nice, but shouldn't go into this project

  • Integration with external file systems, using WebDav or REST towards a dedicated git-enabled server.

What it looks like so far

Suggest

Syntax error

Ace branches

Achieving the goals listed above will require several changes to Ace. So far there are a few branches with different features on cucumber's ace fork. There may be more. And some may go away if the Ace project accepts them. Rejected Ace pull requests will likely move into this project so we don't have to depend on a forked ace long term.

gherkin-mode

This is the syntax highlighting support for gherkin. Currently there is no i18n. We should generate the highlighter from a template using the technique described here. The Ace gherkin-mode is likely to move into this project instead of living in Ace.

ace-connect

This is a small patch to make it easier to serve ace from node, as explained in this pull request

gherkin-editor

This branch contains the changes on the other branches so that all our fixes can be used in this project

Install and run

npm link
git submodule update --init --recursive
make
node server.js

Now go to http://localhost:8000

Tests

(These are currently broken after a major rewrite of the autocomplete widget)

node_modules/.bin/jasmine-node spec

Want to help?

Join the Cucumber Mailing list and discuss!

Hacking on Ace

Only edit files under lib - not under build - they are generated. To regenerate after hacking:

cd vendor/ace
git submodule update --init --recursive
./Makefile.dryice.js normal

Make a feature branch for everything you do

TODO

  • Gherkin-editor users won't understand regexp anchors. Display a '*', '?' or '-' instead.
  • Move autocomplete widget to ace-autocomplete project once it matures? May improve quality long term (more contributors).
  • Fix 404 for jquery-ui png images. Ideally generate jquery-ui css files from current theme.
  • Figure out how require-js works so we don't need to require so many files in our HTML.
  • Separate displaying of autocompleted text from its content - we may want to indent (or use other visual style for) step examples to separate them from step definitions

More Repositories

1

gherkin2

A fast Gherkin parser in Ragel (The parser behind Cucumber)
Java
381
star
2

cuke4duke

Cucumber support for the JVM: Java, Scala, Groovy, Clojure, Ioke, Javascript, Spring, Guice, PicoContainer, WebDriver, Ant and Maven
Java
256
star
3

gherkin

Cross platform parser for the Gherkin language. Used by Cucumber to parse .feature files.
252
star
4

microcuke

Mimimal Cucumber Reference Implementation
JavaScript
56
star
5

cucumber-tck

Common features shared by all Cucumber implementations
Ruby
43
star
6

cucumber-html

Cross platform HTML formatter for all implementations of Cucumber
JavaScript
40
star
7

bool

Cross-platform boolean expression parser and interpreter
C
36
star
8

cucumber-jvm-clojure

Cucumber Clojure
Clojure
29
star
9

cucumber-rails-training-wheels

Training Wheels for Cucumber-Rails
Ruby
27
star
10

github-issue-stats

Compute and visualise stats about GitHub issues
Ruby
24
star
11

gherkin-syntax-highlighters

Syntax highlighters for Gherkin source
JavaScript
23
star
12

cucumber-recipes-book-code

Source code for examples from Cucumber Recipes
Ruby
21
star
13

cucumber.github.com

DEPRECATED: cucumber.io website source
JavaScript
11
star
14

cucumber-ruby-tcl

Tcl bindings for Cucumber
Tcl
9
star
15

website

Cucumber website blog, plus a few other static pages
HTML
7
star
16

cucumber-archetype

Maven Archetype for Cucumber. Moved to cucumber-jvm
Java
6
star
17

cucumber-engine

Shared go binary that can be used by all language implementations
Go
6
star
18

ruby-capybara-selenium-example

Simple example describing how to get up and running with Selenium
Ruby
6
star
19

cucumber-ruby-spike-donotuse

Pure Ruby Cucumber (Cucumber 2.x)
Ruby
5
star
20

api.cucumber.io

Generated API documentation for Cucumber
HTML
4
star
21

gherkin-lint-javascript

[READ-ONLY] Gherkin-Lint - subtree of monorepo https://github.com/cucumber/cucumber
Gherkin
4
star
22

cucumber-pretty-formatter

Pretty formatter for all Cucumber implementations
Go
2
star
23

cukerecip.es

Cucumber Recipes Blog
CSS
2
star
24

datatable-java

[READ ONLY] Data Table for Java - subtree of monorepo. Now part of Cucumber-JVM
Java
2
star
25

cucumber-bootstrap

Bootstrap new Cucumber implementations
Ruby
2
star
26

cucumber-jvm-jython

Cucumber Jython
Java
2
star
27

suggest

Library for suggesting steps
TypeScript
2
star
28

cucumber-jvm-gosu

Cucumber Gosu
Java
2
star
29

html-formatter-java

[READONLY] Mirror of https://github.com/cucumber/cucumber/tree/master/html-formatter/java
Java
2
star
30

cucumber-jvm-jruby

Cucumber JRuby
Java
1
star
31

textmapper-ruby-spike-donotuse

Ruby
1
star
32

compatibility-kit-javascript

[READ ONLY] mirror of https://github.com/cucumber/cucumber/tree/master/compatibility-kit/javascript
Gherkin
1
star
33

pretty-formatter-go

[READ-ONLY] Mirror of https://github.com/cucumber/cucumber/tree/master/pretty-formatter/go
Go
1
star
34

aruba-contrib

Ruby
1
star
35

aruba-website

Website source for the Aruba project
CSS
1
star