Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

MsTest V2: ITestDataSource ignored
upper
#1 Posted : Wednesday, December 19, 2018 7:11:13 PM(UTC)
Rank: Member

Groups: Registered
Joined: 9/21/2016(UTC)
Posts: 11
Location: Austria

Thanks: 3 times
Was thanked: 2 time(s) in 2 post(s)
Hi, using an implementation of ITestDataSource and Attribute (and [DataTestMethod]) to get data for unit tests does not work in Ncrunch but works in Vs or R# testrunner. (Ncrunch does not execute the tests).

Using the DynamicData Attribute however works with Ncrunch.

Is there a way to make it work in Ncrunch?

Details: https://www.meziantou.ne...05/mstest-v2-data-tests (Custom Datasource).

Br
Renè
Remco
#2 Posted : Wednesday, December 19, 2018 11:27:05 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,099

Thanks: 792 times
Was thanked: 1039 time(s) in 989 post(s)
Hi,

Thanks for sharing this issue. NCrunch's support for MSTest is emulated rather than integrated, so this means we need to add support for new MSTest features ourselves before they become available in NCrunch. This one wasn't on my radar. I've noted it down to be addressed, hopefully early in the new year. Thanks for bringing it to my attention.
roy844
#3 Posted : Thursday, May 28, 2020 8:30:16 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/7/2019(UTC)
Posts: 2
Location: Netherlands

Thanks: 1 times
I also implemented the ITestDataSource and NCrunch version 4.3.0.13 is still not running these tests, is there any update on this?
Remco
#4 Posted : Thursday, May 28, 2020 12:08:33 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,099

Thanks: 792 times
Was thanked: 1039 time(s) in 989 post(s)
roy844;14747 wrote:
I also implemented the ITestDataSource and NCrunch version 4.3.0.13 is still not running these tests, is there any update on this?


Hi, we do have support for this now. Can you check that you have your 'Framework utilisation type for MSTest' NCrunch setting set to 'DynamicAnalysis'? If it's set to 'StaticAnalysis', NCrunch won't be able to invoke your GetData method to discover the tests.
2 users thanked Remco for this useful post.
UppSol on 5/28/2020(UTC), roy844 on 5/29/2020(UTC)
roy844
#5 Posted : Friday, May 29, 2020 6:21:53 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/7/2019(UTC)
Posts: 2
Location: Netherlands

Thanks: 1 times
Thank you Remco, changing from 'StaticAnalysis' to 'DynamicAnalysis' resolves the issue.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.042 seconds.