-
|
I'm looking for a way to simplify Theory DisplayNames which exits both with Discovery & Execution processes. This is so that people can find and debug specific tests while in Visual Studio. Specifically I want to assign each a Test Case Id. The first way I came across was to use IXunitSerializable in order to override the serialization process but due to use of fixtures and ITestOutputHelper I get the error: xUnit3001 Class must have a public parameterless constructor to support Xunit.Abstractions.IXunitSerializable. I also tried overriding ToString on a complex type and this works when running the tests, but not for discovery / displaying the names within the test runner. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Beta Was this translation helpful? Give feedback.

I did some more research since yesterday and realized I did not understand how IXunitSerializable was to be used. Working from some other info on stack overflow I think I have what I want working. Any suggestions on how to simplify it would be appreciated.