Skip to content

Add support for NUnit3TestGeneratorProvider.#1

Open
DavidKorn wants to merge 1 commit intosamholder:masterfrom
DavidKorn:NUnit3TestGeneratorProvider
Open

Add support for NUnit3TestGeneratorProvider.#1
DavidKorn wants to merge 1 commit intosamholder:masterfrom
DavidKorn:NUnit3TestGeneratorProvider

Conversation

@DavidKorn
Copy link
Copy Markdown

Previously SpecFlow.NCrunch invoked use of the older NUnitTestGeneratorProvider under the newer NUnit 3. This older provider does not set a Reason parameter when creating NUnit Ignore attrbiutes, however a non-empty Ignore Reason is now required under NUnit 3. So the effect was that use of SpecFlow.NCrunch was changing SpecFlow behavior such that generated tests would not build for NUnit 3. SpecFlow normally uses the newer NUnit3TestGeneratorProvider which addresses the Ignore Reason issue. This small patch aligns SpecFlow.NCrunch to do the same.

Previously SpecFlow.NCrunch forced the use of the legacy NUnitTestGeneratorProvider, which does not set a Reason string when creating NUnit Ignore attrbiutes.  This Ignore Reason is a required value for NUnit3.
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

Successfully merging this pull request may close these issues.

1 participant