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.
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 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.