-
Notifications
You must be signed in to change notification settings - Fork 80
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
Custom Trait-Attribute causes non-stop Discovery of Test-Methods in VS 2019 #176
Comments
As I figured out, this situation can caused in case the Custom-Trait-Attribute throws any Exception in Constructor e.g. because of validation of input params. For instance:
I hope it might help someones. |
Does this only fail in Visual Studio? If so, this issue needs to be moved to the right repo. |
Yes, only in Visual Studio. To which Repo should I move this thread? |
I'll move it. :) |
Same problem in Visual Studio 2022 when you use package SkippableFact for Xunit. |
I tested in a separate project and it seems fine. BUT. It is surely because my problematic project has its own class implementing XunitTestFramework. But the problem does not happen all the time. |
@djalan If you can provide a repro project that would be very helpful. Thanks! |
Hi,
in VS 2019 I am suffering a situation in that the discovery of xUnit Test-Methods in Test-Explorer (i.e. testhost process) runs endless, if any Test-Method has Custom-Trait-Attribute i.e. by adding any class inhered from ITraitAttribute and ITraitDiscoverer, for instance: https://github.com/xunit/samples.xunit/tree/master/TraitExtensibility
I would appreciate any idea in this case.
Thanks and best regards!
The text was updated successfully, but these errors were encountered: