JuergenGutsch / blog

Personal blog about web development based on .NET and .NET Core
https://asp.net-hacker.rocks/
Other
31 stars 17 forks source link

Unit testing DNX libraries with NUnit #31

Open JuergenGutsch opened 5 years ago

JuergenGutsch commented 5 years ago

Written on 16.12.2015 06:06:04

URL: http://asp.net-hacker.rocks/2015/12/16/unit-testing-dnx-libraries-with-nunit.html

JuergenGutsch commented 5 years ago

Comment written by Uri Goldstein on 24.12.2015 13:40:20

Thanks for posting these instructions Jurgen. I am indeed able
to run my NUnit tests from within Visual Studio 2015 using the ‘test’
command.

However, I would like to have the tests run using ReSharper’s Unit
Test Explorer. This is very easy when testing non-DNX projects but for
DNX projects it fails with “System,IO.FileNotFoundException: Could not
load file or assembly ‘SUT.dll’…”

Might you know why this is happening and how to fix it?

Thanks in advance,
Uri Goldstein

JuergenGutsch commented 5 years ago

Comment written by Jürgen Gutsch on 04.01.2016 10:14:33

Hi Uri,
sorry for the late answer, I didn't touch my computer the last 10 days ;)

My answer is no, I didn't get the NUnit and even the Xunit tests running in ReSharper's Unit Test Explorer.
I think it is because ReSharper doesn't support calling the right dnx commands.

Cheers,
Juergen