c++ - How to add additional dll search directories for native unit tests? -


i'm working on big code base has many solutions , many more projects.

when write unit tests depend on number of dlls being present built other solutions different output folders current solution.

i add build steps copy required dll's current solution's output folder can found when run unit tests. can end in lot of wasted space , confusion duplicate dlls , master copy of each dll 1 should go installer.

is there better way of adding additional search directories?

i considering having test_module_initialize adddlldirectory() , marking dll's delay loaded when load added dll directory searched. but, don't think works have mark dll's delay loaded in exe. but, exe testrunner out of control.

it may not best method, since you're using visual studio 2013, should test settings control deployed when run tests. inside of test settings can specify files or folders in deployment section allow select files outside of current solution. can create multiple test settings (one local , 1 use on build server if paths these files going different).

again, maybe not best solution, has worked me in past.

specifying test settings visual studio tests - https://msdn.microsoft.com/en-us/library/ee256991.aspx


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -