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

[Core] Use UndefinedStepsTracker from provided RuntimeGlue #1019

Merged
merged 2 commits into from
Jul 7, 2017

Conversation

Illapikov
Copy link
Contributor

Passed RuntimeGlue and it's tracker is not connected with Runtime and it's tracker.

@mpkorstanje mpkorstanje added the Bug label Jul 7, 2017
optionalGlue.stepDefinitionMatch("", new Step(null, "Given ", "A", 1, null, null), ENGLISH);

assertEquals(0x1, runtime.exitStatus());
}
Copy link
Contributor

@mpkorstanje mpkorstanje Jul 7, 2017

Choose a reason for hiding this comment

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

With the current code base no tests are executed in this test so this won't pass.

Copy link
Contributor

@mpkorstanje mpkorstanje left a comment

Choose a reason for hiding this comment

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

Please rebase onto the latest master. There have been several significant changes.

@mpkorstanje mpkorstanje changed the title Passed RuntimeGlue and it's tracker is not connected with Runtime and… [Core] Use UndefinedStepsTracker from provided RuntimeGlue Jul 7, 2017
@mpkorstanje mpkorstanje merged commit 636471a into cucumber:master Jul 7, 2017
@mpkorstanje
Copy link
Contributor

Nevermind. I just realized this was a PR from 2016! A belated thanks for your contribution.

mpkorstanje added a commit that referenced this pull request Jul 7, 2017
 Glue only served to pass the UndefinedStepsTracker between Runtime and
 Runtime. Decoupling this removes some pointless complexity.

 The constructor `RuntimeGlue(UndefinedStepsTracker tracker, LocalizedXStreams localizedXStreams)`
 has been deprecated to avoid breaking existing implementations.

 The Runtime will not use the provided UndefinedStepsTracker but this is
 consistent with the behaviour prior to  #1019.

 Third parties interested in undefined steps can use the subscribe their own
 UndefinedStepsTracker to the event bus.
mpkorstanje added a commit that referenced this pull request Jul 7, 2017
 Glue only served to pass the UndefinedStepsTracker between Runtime and
 Runtime. Decoupling this removes some pointless complexity.

 The constructor `RuntimeGlue(UndefinedStepsTracker, LocalizedXStreams)`
 has been deprecated to avoid breaking existing implementations.

 The Runtime will not use the provided UndefinedStepsTracker but this is
 consistent with the behaviour prior to  #1019.

 Third parties interested in undefined steps can use the subscribe their own
 UndefinedStepsTracker to the event bus.
mpkorstanje added a commit that referenced this pull request Jul 7, 2017
 Glue only served to pass the UndefinedStepsTracker between Runtime and
 Runtime. Decoupling this removes some pointless complexity.

 The constructor `RuntimeGlue(UndefinedStepsTracker, LocalizedXStreams)`
 has been deprecated to avoid breaking existing implementations.

 The Runtime will not use the provided UndefinedStepsTracker but this is
 consistent with the behaviour prior to  #1019.

 Third parties interested in undefined steps can use the subscribe their own
 UndefinedStepsTracker to the event bus.
@brasmusson
Copy link
Contributor

The exit code is now not connected at all to the UndefinedStepsTracker, but is solely determined by the result (status) of the test cases. So if the main issue to be fixed by this PR was to avoid getting wrong exit code when injecting a RuntimeGlue into the Runtime, that problem already gone.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants