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

Incorrect reporting of data driven nunit tests in trx. #972

Closed
AbhitejJohn opened this issue Aug 2, 2017 · 4 comments
Closed

Incorrect reporting of data driven nunit tests in trx. #972

AbhitejJohn opened this issue Aug 2, 2017 · 4 comments
Assignees

Comments

@AbhitejJohn
Copy link
Contributor

From @arielcloud

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!

@cltshivash
Copy link
Contributor

There's no first class mechanism today for an adapter to pass the class name. This needs to be an enhancement.

@smadala
Copy link
Contributor

smadala commented Aug 9, 2018

Related to #1677

@smadala
Copy link
Contributor

smadala commented Aug 9, 2018

@abhishkk Can we close this?

@abhishkk
Copy link
Contributor

Fixed issue with PR: #1677

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

No branches or pull requests

5 participants