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

GH2039: Fix XUnit2Settings + XUnit2Runner to honor ParallelismOption.None #2040

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

kcamp
Copy link
Contributor

@kcamp kcamp commented Feb 14, 2018

Here is the first pass over what I believe to be the most appropriate fix for GH-2039.
I've made the property on the XUnit2Settings class nullable.
By default, assuming a user hasn't set the value, it will not be emitted as an argument.
This maintains parity with the previous implementation where ParallelismOptions.None, the CLR default, would suppress the emission. In either case, no explicit argument will allow the runner to use the default.

The other option that I entertained that we could explore further would be setting the default on the XUnit2Settings class to Collections to match the runner, but I think this has the potential to create regressions for people.

Please feel free to suggest other implementations if they're more desirable.

@kcamp kcamp changed the title GH-2039: Fix XUnit2Settings + XUnit2Runner to honor ParallelismOption.None GH2039: Fix XUnit2Settings + XUnit2Runner to honor ParallelismOption.None Feb 14, 2018
Copy link
Member

@devlead devlead left a comment

Choose a reason for hiding this comment

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

LGTM 👍 I'll merge once CI finishes.

@devlead devlead merged commit 633723f into cake-build:develop Mar 13, 2018
@devlead
Copy link
Member

devlead commented Mar 13, 2018

@kcamp your changes have been merged, thanks for your contribution 👍

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