-
Notifications
You must be signed in to change notification settings - Fork 758
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
Allow for file Attachments #936
Comments
This is definitely needed |
I'm working on a Selenium test project for a website and would really like to attach a screenshot to failed tests. |
I would also like not only attachments but writable file streams - my tests (as a whole, not individually) generate tracing data very useful for failure analysis. However, I am currently left to handle it completely outside the xunit universe, in parallel to actual test code. This is suboptimal. It would be especially great if this worked also for platforms where normal file I/O is otherwise permission-limited (e.g. UWP). |
The writable streams would be great. We don't have the limitation of platforms like you do, but it would definitely save some work. |
Is there a workaround for VSTest, or are we just out of luck for now when it comes to screenshots? |
I switched my project to nUnit. At this point, it has everything I need
including running tests in parallel. xunit is cool, but still half baked.
…On Thu, Apr 6, 2017 at 4:14 AM, Max Wilson ***@***.***> wrote:
Is there a workaround for VSTest, or are we just out of luck for now when
it comes to screenshots?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#936 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADJroJrT8UYSOI7u1lHHovpoBScwgYu1ks5rtMkhgaJpZM4JjAxf>
.
|
Closed for age. |
Is this issue no longer relevant? |
It seems xunit v3 expeced to have "test context" feature. #621 |
It will be nice to have this feature in Xunit. |
I was really in love with the XUnit framework, but I am really missing this feature and am considering to switch back to NUnit for my company UX tests. Are there still no plans to include this feature? |
Why's this closed? Does that mean it won't be considered as a feature? |
There is following feature ticket on xUnit.net v3 roadmap. If this feature will be supported by v3. |
We are migrating from MsTest to xunit and one thing that is missing from xunit are file attachments. MsTest allows your to add files to the result using
TestContext.AddResultFile(fileName)
. The place where to push those files (for vstest.console.exe) is in theAttachments
property of theMicrosoft.VisualStudio.TestPlatform.ObjectModel.TestResult
class. Our usecase is to attach screenshots on failure or dynamicaly created data for some tests.The text was updated successfully, but these errors were encountered: