<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Regression Testing using CI/CD in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/regression-testing-using-ci-cd/m-p/1329048#M10400</link>
    <description>&lt;P&gt;Thank you so much for this idea. Unfortunately this had the same effect of&amp;nbsp; setting the copy local status of the reference to true&lt;/P&gt;&lt;LI-CODE lang="c"&gt;	&amp;lt;Reference Include="ArcGIS.Desktop.Core"&amp;gt;
		&amp;lt;HintPath&amp;gt;C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll&amp;lt;/HintPath&amp;gt;
		&amp;lt;CopyLocal&amp;gt;True&amp;lt;/CopyLocal&amp;gt;
		&amp;lt;Private&amp;gt;False&amp;lt;/Private&amp;gt;
	&amp;lt;/Reference&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It throws this error when testing locally or when running the tests via the CI/CD&lt;/P&gt;&lt;LI-CODE lang="c"&gt;The active test run was aborted. Reason: Test host process crashed : Unhandled exception. System.DllNotFoundException: Unable to load DLL 'DADFLib.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 13:00:27 GMT</pubDate>
    <dc:creator>Schweitzer</dc:creator>
    <dc:date>2023-09-15T13:00:27Z</dc:date>
    <item>
      <title>Regression Testing using CI/CD</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/regression-testing-using-ci-cd/m-p/1328727#M10392</link>
      <description>&lt;P&gt;I am attempting to run some regression tests using CI/CD and the arcgis libraries&amp;nbsp; are not able to be found when the test are ran this way. But when the test.bat file is ran manually all the tests pass. I have followed all the steps in &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Regression-Testing" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Regression-Testing&lt;/A&gt; but am unsure if there are additional changes that need to be made to allow for the tests to be ran via CI/CD.&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Error message from one of the tests that fails&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Error: System.IO.FileNotFoundException: Could not load file or assembly 'ArcGIS.Desktop.Core, Version=13.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'. The system cannot find the file specified.
  Passed GetAllProjects [1 s]
  Failed CreateMapOnce [443 ms]
  Error Message:
   Test method Reg_TESTS_Regression.MapFeatureClass.CreateMapOnce threw exception: 
System.Exception: Failed to open Project; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        [TestMethod]
        public async Task CreateMapOnce()
        {
            CreateProjectSettings createProjectSettings = new CreateProjectSettings()
            {
                Name = "Test",
            };
            await Project.CreateAsync(createProjectSettings);

            Assert.IsTrue(true);

        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CI/CD code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;test:
  stage: test
  script:
    - .\test.bat
  dependencies:
    - build_debug&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test.bat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;call "%VS22Tools%\vsdevcmd"

echo "Dotnet restore"
dotnet restore

echo "Restoring git packages"
nuget restore %Solution%

echo "Build Reg TESTS project"
msbuild.exe %Solution%

echo "Running Reg Tests"
vstest.console.exe Reg_tests\bin\Debug\net6.0-windows\Reg_tests.dll

echo "Running Reg Tests"
vstest.console.exe Reg_TESTS_Regression\bin\Debug\net6.0-windows\Reg_TESTS_Regression.dll&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/regression-testing-using-ci-cd/m-p/1328727#M10392</guid>
      <dc:creator>Schweitzer</dc:creator>
      <dc:date>2023-09-14T15:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Testing using CI/CD</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/regression-testing-using-ci-cd/m-p/1328748#M10394</link>
      <description>&lt;P&gt;We do something similar and found we needed to manually have the Esri dlls copied to the unit test output folder, which we accomplished with a target in the test project csproj file.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Target Name="CopyEsriDlls" AfterTargets="Build"&amp;gt;
&amp;lt;ItemGroup&amp;gt;
&amp;lt;EsriDlls Include="$(NuGetPackageRoot)Esri.ArcGISPro.Extensions30\3.1.*\ref\net6.0-windows7.0\*.dll" /&amp;gt;
&amp;lt;/ItemGroup&amp;gt;
&amp;lt;Copy SourceFiles="@(EsriDlls)" DestinationFolder="$(OutputPath)" /&amp;gt;
&amp;lt;/Target&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/regression-testing-using-ci-cd/m-p/1328748#M10394</guid>
      <dc:creator>DanielRouleau</dc:creator>
      <dc:date>2023-09-14T15:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regression Testing using CI/CD</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/regression-testing-using-ci-cd/m-p/1329048#M10400</link>
      <description>&lt;P&gt;Thank you so much for this idea. Unfortunately this had the same effect of&amp;nbsp; setting the copy local status of the reference to true&lt;/P&gt;&lt;LI-CODE lang="c"&gt;	&amp;lt;Reference Include="ArcGIS.Desktop.Core"&amp;gt;
		&amp;lt;HintPath&amp;gt;C:\Program Files\ArcGIS\Pro\bin\Extensions\Core\ArcGIS.Desktop.Core.dll&amp;lt;/HintPath&amp;gt;
		&amp;lt;CopyLocal&amp;gt;True&amp;lt;/CopyLocal&amp;gt;
		&amp;lt;Private&amp;gt;False&amp;lt;/Private&amp;gt;
	&amp;lt;/Reference&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It throws this error when testing locally or when running the tests via the CI/CD&lt;/P&gt;&lt;LI-CODE lang="c"&gt;The active test run was aborted. Reason: Test host process crashed : Unhandled exception. System.DllNotFoundException: Unable to load DLL 'DADFLib.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 13:00:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/regression-testing-using-ci-cd/m-p/1329048#M10400</guid>
      <dc:creator>Schweitzer</dc:creator>
      <dc:date>2023-09-15T13:00:27Z</dc:date>
    </item>
  </channel>
</rss>

