I have a very simple test!
[Test]
public void TestMethod1()
{
Assert.IsTrue(false);
}
When I try to run this with nunit3-console.exe I get the following error.
NUnit.Engine.NUnitEngineException : The NUnit 3 driver encountered an error while executing reflected code. ----> System.InvalidCastException : Unable to cast transparent proxy to type 'System.Web.UI.ICallbackEventHandler'. --NUnitEngineException
I am running .NET Core 2.1, with NUnit Console Runner 3.9 and NUnit test adapter 3.1. I did do a Google search and got conflicting answers. Am I missing something?
Sdk version 17.0. 0 to your NUnit test projects will also enable the dotnet test command for . NET Core projects.
NUnit is an open-source unit testing framework for the . NET Framework and Mono.
I reached out to the NUnit community and got this answer: Does NUnit Console work with .NET Core? #487
NUnit Console is compiled using the full .NET Framework and does not currently support .NET Core. To run .NET Core tests from the command line, you need to use dotnet test
. For information on how to do this, see .NET Core and .NET Standard (NUnit wiki).
We are looking at creating a .NET Core based console runner, but it is still in the planning stages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With