xunit / visualstudio.xunit

VSTest runner for xUnit.net (for Visual Studio Test Explorer and dotnet test)
https://xunit.net/
Other
146 stars 81 forks source link

Multiple InlineData in Theory is counted as one single test. #368

Closed mlsomers closed 1 year ago

mlsomers commented 1 year ago

When running the command:

dotnet test MyTests.dll -l:trx;LogFileName=Output.xml

Multiple InlineData (Theory) tests are counted as a single test. According to this question on StackOverflow it is happening since V3.1.4.

Also, It would be nice If I could see which InlineData caused a failure from the test-report. Currently I need to rerun the test on my local machine to find out (and occasionally not reproduce).

bradwilson commented 1 year ago

I'm afraid none of these things are under our control. You should ask your questions of the Azure Pipelines team, as they own that UI and that task.

mlsomers commented 1 year ago

I found a workaround here while searching for the correct repository (which is extremely hard to find by the way).

Adding --verbosity normal seems to be all that's needed.

So now I have:

dotnet test MyTests.dll -l:trx;LogFileName=Output.xml --verbosity normal

And all tests show up nicely :-) Thanks