chore: Suppress xunit non-serializable data warnings - #2769
Conversation
|
TestAdapter should not have to be removed in Debug configuration. We should rather fix whatever the issue is. |
I've removed To fix |
Just set |
24da94a to
52dff7f
Compare
|
I've removed Condition from this PR. (It's not not pushed)
When TestAdapter assembly is loaded by TestExplorer. I'll try to create another PR that enable SignAssembly for |
52dff7f to
93c4c97
Compare
This PR intended to fix issue that following xUnit warnings are recorded on test discovery.
This warning is occurred when Theory data contains non serialize/deserialize data by xunit (
IToolchain,Jit, and `Runtime).It's not needed to display individual test cases on TestExplorer.
So suppress these warnings by specifing
DisableDiscoveryEnumeration=trueparameter.Other changes
Add condition to reference TestAdapter project when usingReleaseconfiguration only.It's required because it failed to load BenchmarkDotNet assembly when build project withDebugconfiguration.It's caused bystrong-named assembliesare required to load assembly.(These log can be confirmed byTestslog on VS output window)