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

Create data tables for arbitrary arguments #15

Closed
janschaefer opened this issue Aug 19, 2014 · 0 comments
Closed

Create data tables for arbitrary arguments #15

janschaefer opened this issue Aug 19, 2014 · 0 comments

Comments

@janschaefer
Copy link
Contributor

Currently JGiven creates data tables if parameters of cases are different. However, if arguments differ that are no parameters, data tables are not generated.
Example:

Case 1: a = 5
Given some 5
When foo 6
Then bar

Case 2: a = 7
Given some 7
When foo 8
Then bar

As the argument of foo is not a parameter, no data table is generated.

Desired output:

Given some <a>
When foo <b>
Then bar

|  a  |  b  |
|  5  |  6  |
|  7  |  8  |

The name of the variable should be derived from the variable name of the called method

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

1 participant