<?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: Anyone tried running tests through a build agent in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211989#M2475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not done any CI with the runtime, but I have gotten my unit tests to work, I had the same problem you did. &amp;nbsp;The main thing I added was this, within my [TestClass]:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;TestInitialize&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;ConfigureEsriRuntime&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;Esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsInitialized&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InstallPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Directory&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetCurrentDirectory&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I also had to set the Platform target in the properties for the Test Project, but I'm not sure. &amp;nbsp;In my case, the output directory contained the right ArcGISRuntime100.0 folder, but the InstallPath wasn't set correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:25:24 GMT</pubDate>
    <dc:creator>MoreHavoc</dc:creator>
    <dc:date>2021-12-11T10:25:24Z</dc:date>
    <item>
      <title>Anyone tried running tests through a build agent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211988#M2474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using Visual Studio online for source control and also using for CI builds. &amp;nbsp;I am also trying to see if I can run unit tests as part of this build process. &amp;nbsp;While it won't be able to run many tests because they are dependent on our Portal there are a number that don't have this dependency and I was hoping to run these as part of the build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that I cannot figure out how to set the InitialDirectory so that the RuntimeEnvironment sees the Runtime deployment folders. &amp;nbsp;Because of this it cannot properly initialize and the tests fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone given this a try? &amp;nbsp;Any ideas? &amp;nbsp;It sure would be nice to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 21:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211988#M2474</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2017-04-24T21:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone tried running tests through a build agent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211989#M2475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not done any CI with the runtime, but I have gotten my unit tests to work, I had the same problem you did. &amp;nbsp;The main thing I added was this, within my [TestClass]:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;TestInitialize&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;ConfigureEsriRuntime&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;Esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsInitialized&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InstallPath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Directory&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetCurrentDirectory&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I also had to set the Platform target in the properties for the Test Project, but I'm not sure. &amp;nbsp;In my case, the output directory contained the right ArcGISRuntime100.0 folder, but the InstallPath wasn't set correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211989#M2475</guid>
      <dc:creator>MoreHavoc</dc:creator>
      <dc:date>2021-12-11T10:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone tried running tests through a build agent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211990#M2476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya..I was able to get the tests to run when running through a the test runner in VS (using the same basic method), &amp;nbsp;Its figuring out a way to run the a build agent that is beating me up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 22:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211990#M2476</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2017-04-24T22:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone tried running tests through a build agent</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211991#M2477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up moving to Jenkins instead of vs online. &amp;nbsp;In Jenkins I can control where everything is placed and use the same folder structure as our development machines. &amp;nbsp;Also kind of slick it does multi-branch setup so it will build against any branch commits. &amp;nbsp;The scripting took a bit to figure out (I have not setup Jenkins for a couple years) but once you get a handle seems pretty powerful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 17:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/anyone-tried-running-tests-through-a-build-agent/m-p/211991#M2477</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2017-05-04T17:37:20Z</dc:date>
    </item>
  </channel>
</rss>

