Skip to content

Description in TestCase - #538

Merged
Sarabjot Singh (singhsarab) merged 8 commits into
microsoft:masterfrom
singhsarab:DescriptionInTestCase
Dec 14, 2018
Merged

Sarabjot Singh (singhsarab) merged 8 commits into
microsoft:masterfrom
singhsarab:DescriptionInTestCase

Conversation

@singhsarab

Copy link
Copy Markdown
Contributor

Make Description, CssIteration, WorkItem, CssProjectStructure available in properties in the TestCase object.
Fixes : #529

{
var attribute = GetCustomAttributes(attributeProvider, type, true);

if (attribute == null || attribute.Length != 1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What if we have multiple workitem attributes? Do we want to silently ignore/not fill them in property bag?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's a valid concern. I just followed the same convention that was bein followed for Priority and Owner. https://github.com/Microsoft/testfx/blob/8384164a3187cd586134bfc230c337671300f68d/src/Adapter/MSTest.CoreAdapter/Helpers/ReflectHelper.cs#L599

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Then, we'd ideally want to make workitem property an array of workitems.

@singhsarab
Sarabjot Singh (singhsarab) merged commit 688c6ca into microsoft:master Dec 14, 2018
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