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

Given/When/Then inlined variables #7

Open
corbym opened this issue Jan 20, 2018 · 0 comments
Open

Given/When/Then inlined variables #7

corbym opened this issue Jan 20, 2018 · 0 comments

Comments

@corbym
Copy link
Owner

corbym commented Jan 20, 2018

As a developer, I want to be able to inline variables I pass to my functions in a formatted way, so that my tests are more understandable.

Example:

func TestMyStuff(testing testing.T){
    Given(iAmMaking_CupsOf_Tea(3, "Earl Grey")).
         When(iPour_MillilitersOfWater("250")).
         Then(func(...){
         // some assertions
         }

}

.. should render as:

Given I am making 3 cups of Earl Grey Tea
When I pour 250 milliliters of water
Then
    // some assertions 
@corbym corbym self-assigned this Jan 20, 2018
@corbym corbym removed their assignment Jan 23, 2018
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