[Source Breaking (only for framework authors)]: Support test artifacts in VS - #5323
Conversation
91ef7b7 to
51da5fc
Compare
51da5fc to
8250415
Compare
8250415 to
ba4c9b0
Compare
Marco Rossignoli (MarcoRossignoli)
left a comment
There was a problem hiding this comment.
Nit on name LGTM
|
Do you know who we are breaking with this? Is this all nunit, xunit, mstest and tunit? |
xUnit and TUnit. For MSTest, we are always using the current version of VSTestBridge which accounts for the break in this PR. For NUnit, they are also good as they will just update VSTestBridge and that's it. |
|
Does sound reasonable to me to make this change when we know the break is only for test framework authors. :) (how about Expecto?) |
|
Expecto also relies on the bridge so it's also only a matter of bumping version. |
|
Happy to make this change. Session Artifacts will remain as they are today? |
|
Tom Longhurst (@thomhurst) Yes, session artifacts are still the same. This only affects |
|
Is this change pushed to NuGet yet? If not, is there a planned release vehicle & timing? |
|
Brad Wilson (@bradwilson) It will be available in 1.7. We may want to release a preview of 1.7 sometime soon. |
|
Available in xUnit.net v3 |
Fixes #4934
This change is a breaking change for framework authors. Framework authors will now need to add attachments to TestNode properties as
TestFileArtifactProperty. There can be multiple of such property, or none at all.Publishing
TestNodeFileArtifactis no longer the way to report artifacts. The type is marked obsolete but is kept for binary compatibility.Data consumers who used to consume
TestNodeFileArtifactwill instead need to consumeTestNodeUpdateMessageand find the artifacts in the properties of the test node.Tested in Playground:
code:
Artur Spychaj (@drognanar) The order of attachments is reversed compared to VSTest, I think. But that seems to be on Test Explorer side.
FYI Brad Wilson (@bradwilson) Tom Longhurst (@thomhurst)
Also Terje Sandstrom (@OsirisTerje). As you are relying on VSTestBridge, you will only need to bump MTP version so that attachments start to show correctly in Test Explorer.