Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mstest trx bug in className when using nunit tests with parameters #230

Closed
arielcloud opened this issue Aug 2, 2017 · 1 comment
Closed

Comments

@arielcloud
Copy link

Description

I have nunit test like this:

protected static TimeRange[] TestCaseX = new TimeRange[] { new TimeRange(new DateTime(2016, 2, 3), new DateTime(2016, 2, 4)), new TimeRange(new DateTime(2016, 2, 3), new DateTime(2016, 3, 3)) };

[Test, TestCaseSource(nameof(TestCaseX))] public void testFoo(TimeRange time)

TimeRange exists in Infra.Services

when runnig tests with "dotnet test --logger:trx" it output the trx file with:
"className="BL.Tests.services.OneTimeTests.testFoo(infra.Services"

probably because it see the test as
"BL.Tests.services.OneTimeTests.testFoo(infra.Services.TimeRange)"

and it is trying to take the className by splice(".") and taking the first part till the dot, which is not correct in this case when we have dots also in the test name.

is exists any fix for that?

10x!

@AbhitejJohn
Copy link
Contributor

Thanks for filing this. Moved this over to microsoft/vstest#972 to get the right folks involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants