spekt / junit.testlogger

JUnit test logger for vstest platform (<= v3.x)
MIT License
76 stars 15 forks source link

Need test name to include parameter for Theory test case #53

Closed chaintng closed 1 year ago

chaintng commented 2 years ago

image

C# support Theory test case https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-dotnet-test#add-more-tests

That has parameter in the test function

This should include in the test name Otherwise, it will show the same test case for all parameter

I tried to look into the code, but i'm not sure do we have this value in TestResultInfo class yes

If yes, please help advise, i can help contribute

Thank you so much.

Siphonophora commented 2 years ago

@chaintng Hi. This is actually going to be in our next release. You can use the feature in the preview package on our MyGet feed. https://www.myget.org/feed/spekt/package/nuget/JunitXml.TestLogger

chaintng commented 2 years ago

@Siphonophora how can i see the source code? Could you please advise which parameter should i gave to get this output ?

Siphonophora commented 2 years ago

Most of the source is in another repo. You are probably interested in this file: https://github.com/spekt/testlogger/blob/master/src/TestLogger/Extensions/XunitTestAdapter.cs

The theory data should be there by default now, with the version in MyGet. If that isn't working, please provide an example I can look at.

Siphonophora commented 2 years ago

@chaintng Actually, we just released that package to nuget, so you don't need to get it from MyGet.