Hello,
I am using the Esri.ArcGISPro.Extensions NuGet package to build my ArcGIS Pro add-in without a physical ArcGIS Pro install (https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-ArcGIS-Pro-Extensions-NuGet). This does seem to work great for compiling my add-in.
However, I also have existing unit tests (https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Regression-Testing) that are now failing because they still try to reference the ArcGIS Pro install:
This is what the MSTest section in my .runsettings file looks like:
<MSTest>
<TestTimeout>90000</TestTimeout>
<MapInconclusiveToFailed>false</MapInconclusiveToFailed>
<CaptureTraceOutput>true</CaptureTraceOutput>
<DeleteDeploymentDirectoryAfterTestRunIsComplete>true</DeleteDeploymentDirectoryAfterTestRunIsComplete>
<DeploymentEnabled>false</DeploymentEnabled>
<AssemblyResolution>
<Directory path="C:\Program Files\ArcGIS\Pro\bin\" includeSubDirectories="true"/>
</AssemblyResolution>
</MSTest>
Is it possible to point the AssemblyResolution to the Esri.ArcGISPro.Extensions NuGet package, or do the ArcGIS Pro unit tests require ArcGIS Pro to be installed on the same machine?
Thanks,
Greg
Solved! Go to Solution.
Executing ArcGIS Pro tests requires ArcGIS Pro to be installed and licensed on the same machine as the tests are run.
Executing ArcGIS Pro tests requires ArcGIS Pro to be installed and licensed on the same machine as the tests are run.
Thanks Srinivas, that is good to know.
Another question though: I just upgraded to ArcGIS Pro 3.0 and I do have it installed on my machine. I ported my unit test project to 3.0 too, but I am seeing the same error referenced in my post when I try to run my tests (although this time it is complaining about ArcGIS.Desktop.Core version 13.0 instead of 12.9).
Is there anything I need to change in the .runsettings file for my tests to work with 3.0?
Does your 3.0 test project follow the steps mentioned in this wiki - https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Regression-Testing , including the Visual Studio and .Net target framework requirements?
Okay, looks like I was missing a couple steps in the Regression Testing ProGuide 🙂
Thanks again!