-
Notifications
You must be signed in to change notification settings - Fork 280
[Source Breaking (only for framework authors)]: Support test artifacts in VS #5323
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
91ef7b7
to
51da5fc
Compare
src/Platform/Microsoft.Testing.Platform/Messages/TestNodeProperties.cs
Outdated
Show resolved
Hide resolved
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.
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? |
@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? |
@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
TestNodeFileArtifact
is no longer the way to report artifacts. The type is marked obsolete but is kept for binary compatibility.Data consumers who used to consume
TestNodeFileArtifact
will instead need to consumeTestNodeUpdateMessage
and find the artifacts in the properties of the test node.Tested in Playground:
code:
@drognanar The order of attachments is reversed compared to VSTest, I think. But that seems to be on Test Explorer side.
FYI @bradwilson @thomhurst
Also @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.