Do ArcGIS Pro unit tests require an ArcGIS Pro desktop install?

933
4
Jump to solution
08-03-2022 10:57 AM
greg_eam
New Contributor III

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:

GregEAM_0-1659549229628.png

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

1 Solution

Accepted Solutions
SrinivasVinnakota
Esri Contributor

Executing ArcGIS Pro tests requires ArcGIS Pro to be installed and licensed on the same machine as the tests are run.

View solution in original post

0 Kudos
4 Replies
SrinivasVinnakota
Esri Contributor

Executing ArcGIS Pro tests requires ArcGIS Pro to be installed and licensed on the same machine as the tests are run.

0 Kudos
greg_eam
New Contributor III

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?

0 Kudos
SrinivasVinnakota
Esri Contributor

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?

greg_eam
New Contributor III

Okay, looks like I was missing a couple steps in the Regression Testing ProGuide 🙂

Thanks again!

0 Kudos