Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReSharper run unit test but have wrong location and missing configuration file (ApplicationBase)

When I run unit test from ReSharper my AppDomain.CurrentDomain.SetupInformation have path: C:\Users\%USERNAME%\AppData\Local\Temp\hwa3yebt.mas\<project>.config (IIS temp dictionary) and it doesn't work and throws System.IO.FileNotFoundException becouse can not find configuration file.

Configuration file has Copy to output directory : Copy always (I'm not sure if this is required)

but when I run unit test from Visual Studio test explorer AppDomain.CurrentDomain.SetupInformation have path : C:/Repository/<project>/bin/debug and it works.

What I should do to run ReSharper unit tests?

like image 589
patrykujawski Avatar asked Nov 26 '15 10:11

patrykujawski


1 Answers

Check Resharper runs UnitTest from different location

like image 82
WeSam Abdallah Avatar answered Oct 18 '22 01:10

WeSam Abdallah