-
Notifications
You must be signed in to change notification settings - Fork 748
Correct documentation on ParallelScope #3128
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
Conversation
Now specifies that ParallelScope.All also can be used on assembly level.
But All makes no sense on the assembly, since it incorporates Self. |
But isn't too strict to say that it is not valid on assemblies? It is correct that Also it seems like there are some people using |
I think the docs should use consistent language. In my view, not valid would mean that it gives an error. I haven't actually compared the docs to the code to see if that is true. If a setting is merely ignored, perhaps that's what we should say instead of not valid. |
I think your example of some people misinterpreting All suggests that it was a bad choice for a value. |
[EditorBrowsable(EditorBrowsableState.Never)] | ||
ContextMask = Children + Fixtures, | ||
|
||
/// <summary> | ||
/// The test and its descendants may be run in parallel with others at | ||
/// the same level. Valid on classes and methods but not assemblies. | ||
/// the same level. Valid on classes, parameterized methods, and assemblies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it's confusing to say All is actually invalid for assemblies unless we follow that up by marking the assembly invalid.
This would be a good thing to do if we want the freedom to change what it means for assemblies in the future. E.g. maybe it could be a signal to a future runner to control the assembly-level parallelization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, that goes for Self as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mikkelbu Do you mind leaving out assemblies until we figure out the answer?
We could say it's not meaningful instead of saying it's not valid. |
@nunit/framework-team I like these clarifications. 3.12 is imminent and the PR is still waiting. Functionally speaking, If we say All is valid on an assembly, I think that amounts to recommending or confirming it. Should we do that, or should the XML point people to Children for assemblies instead? |
@nunit/framework-team Sorry for having left this hanging for so long. What about we rephrased the summaries above ParallelScope.SelfFrom
To
ParallelScope.AllFrom
To
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
@mikkelbu I like that. |
@jnm2 @CharliePoole Great. I've pushed a commit with the proposed changes. |
@mikkelbu Thank you! |
Now specifies that
ParallelScope.All
also can be used on assembly level.