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

FileNotFound exception when running nunit-console against .NET Core 2.1 app #392

Closed
shaulbehr opened this issue Mar 29, 2018 · 2 comments
Closed

Comments

@shaulbehr
Copy link

I have a .NET Core 2.1 unit test project, which is using NUnit 3.10.1
My version of NUnit Console is 3.8.0

Command line:

nunit3-console.exe unittests.dll --labels=on

Error:

  1. Error :
    NUnit.Engine.NUnitEngineException : An exception occurred in the driver while loading tests.
    ----> System.IO.FileNotFoundException : Could not load file or assembly 'nunit.framework' or one of > its dependencies. The system cannot find the file specified.
    --NUnitEngineException

Server stack trace:
at NUnit.Engine.Runners.DirectTestRunner.LoadDriver(IFrameworkDriver driver, String testFile, TestPackage subPackage)
at NUnit.Engine.Runners.DirectTestRunner.LoadPackage()
at NUnit.Engine.Runners.DirectTestRunner.EnsurePackageIsLoaded()
at NUnit.Engine.Runners.DirectTestRunner.RunTests(ITestEventListener listener, TestFilter filter)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

@ChrisMaddock
Copy link
Member

NUnit Console doesn't yet support .NET Core. You need to use dotnet test instead.

See #364 and #388

@shaulbehr
Copy link
Author

Rats. Oh well...thanks.

@rprouse rprouse added this to the Closed Without Action milestone Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants