-
Notifications
You must be signed in to change notification settings - Fork 343
Include traits from TestCase in TRX output #1968
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
|
It seems the test |
|
@mayankbansal018 can I do something to make it easier for you to review this PR? |
|
@agehrke I've been a bit busy with a few thing, will I'll look into this over the weekend |
|
No rush, I completely understand that you have other more important tasks 🙂 |
| { | ||
| return false; | ||
| } | ||
| return String.Equals(this.key, otherItem.key, StringComparison.OrdinalIgnoreCase) && String.Equals(this.value, otherItem.value, StringComparison.Ordinal); |
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.
|
@agehrke The changes look good, but have we validated that the trx generated after these changes still opens correctly in VS? |
|
@mayankbansal018 Please follow up on this. |
|
Hi @agehrke, I know the PR is quite old but would you be ready to fix the conflicts? I will try to do the follow-up. |
|
@Evangelink Yes, of course. I will rebase PR on main branch this weekend and push it. Thanks |
…or a TestElement Implementation based on TestCategoryItem and TestCategoryItemCollection.
b3b3b43 to
9354f68
Compare
|
I have rebased on main and adjusted changes to new code guidelines (field names, file scoped namespace, etc) |
|
@Evangelink Let me know if you need something more from me. |
|
Hi @agehrke, Sorry for the delay! I am new to the team and it seems like I went ahead a little too quick here :(. We reviewed the change internally and we decided to add versioning to TRX, before merging this PR. This way users can check if the properties you are adding should be present in the file or not. I'd like to still say a big thank you for the contribution and for the quick update! |
|
Hi @agehrke, It's unlikely we will move forward with this PR so I will close it. Once again thank you for the contribution. |
In the current TRX logger implementation, traits on
TestCaseobjects are mostly ignored when converting to the internalITestElement/UnitTestElementrepresentation.This PR adds a
TestPropertyItemCollection TestPropertiesproperty onTestElementclass which is populated when converting aTestCaseinConverter.ToTestElement()method.TestElement.Save()method is then extended to store the test properties (traits) as Key/Value elements under a Properties element - this follows the XML schema fromvstst.xsd.Example of trx output with traits:
Most of this work is based on @dotMorten's PR #1801.
Tests
I have implemented a test for converting a
TestCasewith traits, and a test for validating the TRX output of a test with traits.