-
Notifications
You must be signed in to change notification settings - Fork 748
Support multiple Author attributes per test #1000
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
Comments
@nunit/contributors Here's another that has been waiting for comments for a year. Let's clean up! |
I don't have a strong opinion on this. I can see the use and I don't see the implementation being much different than allowing multiple categories on a test. |
I don't like the idea of having an |
Speaking as a coach, I agree with you. I would not like to see any of my Speaking as a tool developer, i have to take a different view. Some folks The attribute has existed for a number of releases and I don't see removing Thanks for your comment. It has given me an idea about writing something On Nov 20, 2016 4:27 AM, "Robert Snyder" notifications@github.com wrote:
|
@rprouse I'd say allow it. Again, we don't use the attribute, so it should be no more than changing a property on the attribute usage. |
Is this still relevant? So the recommended way of adding authors is using the AuthorAttribute? |
@JustinRChou Yes, it has been marked as an enhancement and added to the Backlog. Nobody is working on it. You can take it if you want it, therefore. 😄 The Author property on tests is set by adding the AuthorAttribute to the test method. Currently, it is only allowed to appear once. If you change it to allow multiple Author attributes the only other thing needed is to see how the property is used. PropertyBag allows adding multiple values with the same key but only if you use the right method to do it. See Set versus Add methods. |
I was referring to the following usage.
I don't see how would it work unless you use a delimiter, or add a Authors property. |
I forgot we did that! We could make the two work together or we could deprecate the property. Alternatively we could ignore or overwrite one of them. Since it's low priority, we shouldn't get too complicated. |
I would be fine with fixing the AuthorAttribute and updating the documentation to recommend using it. |
I just noticed that the TestCaseSource doesn't have the Author property? And just making a note here. |
Update to Author Attribute to allow for multiple use.
Just a minor fix to the ordering of the assert.
* nunit#1000 Multiple Author Attribute Update to Author Attribute to allow for multiple use.
Support multiple Author attributes per test
https://github.com/nunit/nunit/wiki/Author-Attribute
Note: you can currently only have one Author attribute per fixture or test.
The text was updated successfully, but these errors were encountered: