Build/Test Issues

NCrunch failing to to detect MSTest extension attribute

Started by ncrunch3r on 2,618 views

NCrunch is not detecting any MSTest classes decorated with an attribute that inherits from TestClassExtensionAttribute.

I'm trying to get parameterized MStest test cases working with NCrunch using the following extension:

http://bryanchadwick.com/TestExtension/index.html

The VS 2012 Test Explorer recognizes the <TestCaseClass> attribute and executes the parameterized test cases, but NCrunch does neither.
Hi, thanks for posting.

NCrunch currently does not support the DataSourceAttribute this extension is derived from. Because NCrunch's support for MSTest is emulated rather than integrated, the only way to make this attribute work would be to painstakingly re-implement all its functionality (and quirks) from the ground up ... which is a huge task. Because so few people make use of this attribute and MS seems to be moving away from it, the decision was made not to implement it.

You're welcome to vote for DataSourceAttribute to be supported if you like.

Post a reply

Log in to reply.