You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using DataRow attribute in a unit-test such as [DataRow((char)8)] causes an exception in the dotnet test logger when using html logs. It is a pain to figure out what the actual root cause is in bigger projects :).
I configured the test logger by using Directory.Build.props file. But I guess the same issue should occur when using dotnet test --logger html
[TestClass]publicclassMyTestClass{[DataRow((char)8)]//html logger prints an error and the test result file is empty.[DataRow((char)122)][TestMethod]publicvoidUselessTestMethod(charkey){Assert.IsTrue(key>0);}}
Describe the bug
When using DataRow attribute in a unit-test such as
[DataRow((char)8)]
causes an exception in the dotnet test logger when using html logs. It is a pain to figure out what the actual root cause is in bigger projects :).I configured the test logger by using
Directory.Build.props
file. But I guess the same issue should occur when usingdotnet test --logger html
To Reproduce
The output of the last executed github action run shows the error in the
Test
stephttps://github.com/crone66/bug-dotnet-test/tree/main
Exceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: