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

Run scenario setup for outlines just like we do for simple scenarios #76

Merged
merged 9 commits into from
Dec 4, 2016

Conversation

marnen
Copy link
Contributor

@marnen marnen commented Dec 4, 2016

This fixes the bug described in #73.

@marnen
Copy link
Contributor Author

marnen commented Dec 4, 2016

Ah, I see that Travis isn't happy. Let me fix those issues.

@marnen
Copy link
Contributor Author

marnen commented Dec 4, 2016

There we go. Travis likes it now. :)

Copy link
Collaborator

@meadsteve meadsteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marnen I just merged an earlier PR that touched some of the same code. There's now a few conflicts. If you wouldn't mind fixing those.

But otherwise the code looks 👍 ❤️ and I appreciate you putting the time in to this.

@@ -0,0 +1,5 @@
defmodule WhiteBread.Runners.Utilities do
def apply_scenario_starting_state(feature_state, context) do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea. I like this being extracted 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! There's probably more duplication that could be reduced.

Conflicts:
	lib/white_bread/runners/scenario_outline_runner.ex
@marnen
Copy link
Contributor Author

marnen commented Dec 4, 2016

I resolved the merge conflicts. Possibly even correctly. :D

Copy link
Collaborator

@meadsteve meadsteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@meadsteve meadsteve merged commit 44085a9 into meadery:master Dec 4, 2016
@marnen marnen deleted the 73-setup-for-scenario-outlines branch December 4, 2016 20:35
meadsteve pushed a commit that referenced this pull request Dec 5, 2016
…76)

* Add basic scenario testing outline functionality. [#73]

* Load starting state in scenario outlines. [#73]

* Verify that we reload the starting state for each example. [#73]

* Fix failing test. [#73]

* Extract a utility module for duplication. [#73]

* Update changelog. [#73]

* Reorganize directories so white_bread doesn't get confused about which context to use. [#73]

* Make tests compatible with Elixir 1.1. [#73]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants