Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC inflate gherking with translations #1

Open
djodjoni opened this issue Feb 3, 2017 · 2 comments
Open

POC inflate gherking with translations #1

djodjoni opened this issue Feb 3, 2017 · 2 comments
Assignees

Comments

@djodjoni
Copy link
Member

djodjoni commented Feb 3, 2017

Options:

  1. interchange pickles within the runner
  2. Read Gherkin doc from a file into (GherkinDocument) and write into a brand new GherkinDocument (not sure how to write to a file here)
@ryudo13
Copy link

ryudo13 commented Feb 4, 2017

Is the best solution the solution 1 ? Can you please describe more in details how this works ? :) thanks

@djodjoni
Copy link
Member Author

djodjoni commented Feb 4, 2017

These 2 options are for applying the availability to inject localised strings into features. However the implementation cna support both easily.
I see this as 2 basic modules and one extension.

  1. that reads gherking from file or Object and injects the translation so you endup with New transformed Instance of the features in memory
  2. module that write back to some output(file,http, etc)

extend the runner so it will get as an extra input the translation file and then use 1) to transform it before test suite is built.

in this way 1) contains the core logic and can be reusable in many different ways.

@djodjoni djodjoni changed the title POC explode gherking with translations POC inflate gherking with translations Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants