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

Getting Error Bodi.ObjectContainerException: Interface cannot be resolved: TechTalk.SpecFlow.UnitTestProvider.IUnitTestRuntimeProvider('nunit') #1086

Open
nitkkiran opened this issue Jul 23, 2024 · 3 comments

Comments

@nitkkiran
Copy link

NUnit Compatibility Issue

__Category: Functionality
Visibility: Users
__Resolution: Fix in TestCentric

Description

I am trying to run Nunit Specflow Tests using TestCentric GUI, I can load the test dll but when I run the test, I get the following error
OneTimeSetup:Bodi.ObjectContainerException : Interface cannot be resolved: TechTalk.SpecFlow.UnitTestProvider.IUnitTestRuntimeProvider('nunit')

I am using .NET Framework 4.8 with the following nuget packages

  1. SpecFlow 3.9.74
  2. SpecFlow.NUnit 3.9.74
  3. NUnit 4.1.0
  4. NUnit3testAdapter 4.5.0

Test Centric Error

Please let me know if this is a configuration issue on the .NET project or if some package is missing.
I can run the tests successfully using Visual Studio Test Explorer.

@CharliePoole
Copy link
Contributor

What version of TestCentric GUI are you running?

At first glance, based on the stack trace, this appears to be a SpecFlow error but I'd like to look a bit more closely.

@nitkkiran
Copy link
Author

nitkkiran commented Jul 23, 2024

I am using version 2.0.0-beta4.
Do I need to add any attributes to the SpecFlow Definition files for NUnit to discover the tests?
I have added the SpecFlow.json file (attached) to the project file.
SpecFlow.json

@CharliePoole
Copy link
Contributor

@nitkkiran Can you try this using beta6 so we can be sure it's still an issue?

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

No branches or pull requests

2 participants