spekt / junit.testlogger

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

Add support for ClassFormat configuration #79

Open hmiguel opened 4 months ago

hmiguel commented 4 months ago

Hello,

I wonder if it’s possible to create a configuration for the "classname" format.

(this classname maps to "Suite" column in GitLab table and default classname sometimes is too long and not so user-friendly)

Is there any way to do this?

Example, using NUnit:

The following test class:

[TestFixture(TestName = "User")]
public class MyUsersTests
{
...
}

Generate a xml like this:

<testcase classname="MyApp.Tests.IntegrationTests.Tests.UserTests.User" ... />

Expectation: have a ClassFormat configuration to specify if should output class full name or not, like MethodFormat do.

Thanks