Coder Social home page Coder Social logo

gherkin's People

Contributors

jurriaan avatar maxmarcon avatar meadsteve avatar mgwidmann avatar rawkode avatar revati avatar robertsithouse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gherkin's Issues

Tables can't have cells containing escaped pipe characters

Hello,

I have a table with cell values that contain pipe characters, such as the first cell on the second row in this table:

| MatterTypeFullPath                        | ApprovedTax | ApprovedTotalExcludingTax | LockedExchangeRate |
| Litigation/Dispute\|Potential Dispute     | 12.0        |  133.09                                  | 1.0                               |

Escaping the pipe character works fine in most Gherkin engines AFAIK. But here it doesn't.
Is there a workaround?

Thanks!

Warnings on compile

Fix these:

==> gherkin
Compiling 8 files (.ex)
warning: String.rstrip/1 is deprecated, use String.trim_trailing/1
  lib/gherkin/parser/helpers/feature.ex:22

warning: String.strip/1 is deprecated, use String.trim/1
  lib/gherkin/parser/helpers/feature.ex:26

warning: String.strip/1 is deprecated, use String.trim/1
  lib/gherkin/parser/helpers/tables.ex:49

warning: String.lstrip/1 is deprecated, use String.trim_leading/1
  lib/gherkin/parser.ex:31

warning: String.lstrip/1 is deprecated, use String.trim_leading/1
  lib/gherkin/parser.ex:37

warning: String.lstrip/1 is deprecated, use String.trim_leading/1
  lib/gherkin/parser.ex:45

warning: String.strip/1 is deprecated, use String.trim/1
  lib/gherkin/parser/generic_line.ex:102

Generated gherkin app

Support features with other language

I just started using cabbage with my phoenix app, and it's great ! If I translate my features into another language than english (eg. adding #language: fr at the top of my features) the test steps are just ignored. Have I missed something or is this feature not supported by this gherkin parser ?

Breaking change in 1.6.1

It looks like a new version of this library was released on hex a little over 1 month ago. Glad to see it gaining a new maintainer.

Unfortunately this new release is causing an issue. #8 was a breaking change and the version was set to 2.0.0 appropriately. But it looks like the version was later changed to 1.6.1 in 3d013c8 and then released to hex.

I'm not sure what would be the best approach here. Would it be possible to yank v1.6.1 from hex and re-release it as 2.0.0 instead?

In the mean time the work around for us was to pin 1.6.0 in our mix.exs file.

Pass All testdata of the official monorepo

This implementation fails to parse some of the testdata of the official monorepo.
For instance, when I try to parse complex_background.feature, I get:

** (RuntimeError) Unexpected line: Examples:
    (gherkin 2.0.0) lib/gherkin/parsers/rule_parser.ex:43: Gherkin.Parsers.RuleParser.build_rule/2
    (gherkin 2.0.0) lib/gherkin/parsers/feature_parser.ex:51: Gherkin.Parsers.FeatureParser.build_feature/2
    (elixir 1.10.1) lib/enum.ex:1396: Enum."-map/2-lists^map/1-0-"/2

Multiple tag lines overwrite

Feature: Something

  @first_tag
  @second_tag
  Scenario: A scenario
    Given Something

This should result in the tags being ["first_tag", "second_tag"], yet it only contains ["second_tag"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.