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

Already on GitHub? Sign in to your account

Step arguments transforms support #13

Closed
jbpros opened this Issue Jun 1, 2011 · 9 comments

Comments

Projects
None yet
7 participants
Owner

jbpros commented Jun 1, 2011

Add support for step arguments transforms.

https://github.com/cucumber/cucumber/wiki/Step-Argument-Transforms

totty90 commented Jan 20, 2015

+1

Are transforms on the feature road-map for cucumberJS?

hackhat commented May 2, 2015

Hey! @yaronassa take a look at https://github.com/hackhat/cucumberry/blob/prod/Readme.MD#parse-values-automatically you can have Javascript values parsed automatically. (numbers, decimals, objects, arrays, nested arrays and objects)

Thanks @hackhat !
I know it's possible, but I want to keep my customer's DSL simple and user-friendly, while performing all the necessary processing in the background.
Currently I "manually" parse the relevant values before calling my Word-helper functions, but I would be great skipping all those ugly calls with a behind-the-scenes automatic processing.

totty90 commented May 3, 2015

You could eventually make a plugin for cucuberry and add your own processing step there (don't know if you would have much of a benefit).

@jbpros jbpros removed this from the major features milestone Oct 10, 2015

scote commented Oct 28, 2015

Is there an alternative to transform step argument in the current version?

Owner

jbpros commented Oct 29, 2015

@scote here is a little piece of code that implements transforms for you: https://gist.github.com/jbpros/8414fc60f4fd072c12f3

hey @jbpros thanks for posting that code snippet 👍 I'm having a bit of trouble using it when I've attached something onto World..popped a comment in the gist. thanks

Owner

charlierudolph commented Aug 29, 2016

Closing as will be using a different syntax as part of #622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment