At the moment, the setup for the unit tests
- depends on
TestServices.dll.config
- has a
DynamoBasePath hardcoded to @SHKnudsen's Dynamo folder built from source
This means that cloning the the standard developer experience fails :
- clone repo
- build all
- run tests <-
fails here
Dynamo base path error
The error logged for every test that inherits from GeometricTestBase is :
SetUp : System.IO.DirectoryNotFoundException : C:\Users\SylvesterKnudsen\Documents\GitHub\Dynamo\bin\AnyCPU\Debug
Solving the Dynamo base path then gets you the next error below.
LibG ProtoInterface DLL not found error
System.NotImplementedException : Could not load file or assembly 'file:///C:\Program Files\Dynamo\Dynamo Core\2\libg_0_0_0\LibG.ProtoInterface.dll' or one of its dependencies. The system cannot find the file specified.
Adding a reference to LibG.ProtoInterface.dll found in C:\Program Files\Dynamo\Dynamo Core\2 does not solve the issue.
Downloading the DynamoCoreRuntime version 2.2.1 and changing the config in the TestServices.dll.config fixes that issue :
before
<add key="DynamoBasePath" value="C:\Program Files\Dynamo\Dynamo Core\2"/>
<add key="RequestedLibraryVersion" value="Version224"/>
after
<add key="DynamoBasePath" value="C:\Users\Radu\Downloads\DynamoCoreRuntime2.2.1"/>
Turns out removing RequestedLibraryVersion key is safe.
Removing TestServices.dll.config
Tried removing the configuration file and of course the tests can no longer locate libG, with same error as first one above.
At the moment, the setup for the unit tests
TestServices.dll.configDynamoBasePathhardcoded to @SHKnudsen's Dynamo folder built from sourceThis means that cloning the the standard developer experience fails :
fails hereDynamo base path error
The error logged for every test that inherits from
GeometricTestBaseis :Solving the Dynamo base path then gets you the next error below.
LibG ProtoInterface DLL not found error
Adding a reference to
LibG.ProtoInterface.dllfound inC:\Program Files\Dynamo\Dynamo Core\2does not solve the issue.Downloading the
DynamoCoreRuntimeversion2.2.1and changing the config in theTestServices.dll.configfixes that issue :before
after
Turns out removing
RequestedLibraryVersionkey is safe.Removing TestServices.dll.config
Tried removing the configuration file and of course the tests can no longer locate libG, with same error as first one above.