<?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 Revit.TestRunner - Run UnitTests in Revit in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9070621#M39393</link>
    <description>&lt;P&gt;Hello Developers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 2018 I start to program in Revit API environment. It was completely new to me, so I had to get familiar with the API and its peculiarities. I found the &lt;A href="http://thebuildingcoder.typepad.com/" target="_blank" rel="noopener"&gt;blog&lt;/A&gt; of &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;, which helped me a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We insourced an addin, which was developed by an external company. The hole code lives in an assembly which references the Revit API. Then I realized, testing is hard. I refactured the code, that it was as much as possible independent from the Revit API. This Code was testable as I knew it, tests run on Contiguous Integration. But a lot of Code lasts on the Project referenced to Revit API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I asked google what to do, but apparently there is not THE way how you solve this problem.&lt;/P&gt;&lt;P&gt;There is some stuff around (ex. RevitTestFramework) which seems cool, but I was not happy with it. At least all I found uses NUnit 2.6. But all my Revit independent Code is tested by the NUnit 3.x. The build server doesn’t like the mix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As result, I started to write my own TestRunner using NUnit 3. It is far away from perfect, nevertheless I would like to share it with the community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please have a look at &lt;A href="https://github.com/geberit/Revit.TestRunner" target="_blank" rel="noopener"&gt;https://github.com/geberit/Revit.TestRunner&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Features so far:&lt;/P&gt;&lt;P&gt;* Using NUnit 3&lt;/P&gt;&lt;P&gt;* No reference to Revit.TestRunner needed in test assembly&lt;/P&gt;&lt;P&gt;* Support of NUnit attributes SetUp and TearDown&lt;/P&gt;&lt;P&gt;* Injection of API objects in test method&lt;/P&gt;&lt;P&gt;* Works as an addin with GUI&lt;/P&gt;&lt;P&gt;* Installation script for libraries&lt;/P&gt;&lt;P&gt;* Post build event in VS project to place addin file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feedback welcome&lt;/P&gt;&lt;P&gt;Tobias - Geberit Verwaltungs AG&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2019 10:57:10 GMT</pubDate>
    <dc:creator>tobias.floescher</dc:creator>
    <dc:date>2019-10-07T10:57:10Z</dc:date>
    <item>
      <title>Revit.TestRunner - Run UnitTests in Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9070621#M39393</link>
      <description>&lt;P&gt;Hello Developers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 2018 I start to program in Revit API environment. It was completely new to me, so I had to get familiar with the API and its peculiarities. I found the &lt;A href="http://thebuildingcoder.typepad.com/" target="_blank" rel="noopener"&gt;blog&lt;/A&gt; of &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;, which helped me a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We insourced an addin, which was developed by an external company. The hole code lives in an assembly which references the Revit API. Then I realized, testing is hard. I refactured the code, that it was as much as possible independent from the Revit API. This Code was testable as I knew it, tests run on Contiguous Integration. But a lot of Code lasts on the Project referenced to Revit API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I asked google what to do, but apparently there is not THE way how you solve this problem.&lt;/P&gt;&lt;P&gt;There is some stuff around (ex. RevitTestFramework) which seems cool, but I was not happy with it. At least all I found uses NUnit 2.6. But all my Revit independent Code is tested by the NUnit 3.x. The build server doesn’t like the mix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As result, I started to write my own TestRunner using NUnit 3. It is far away from perfect, nevertheless I would like to share it with the community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please have a look at &lt;A href="https://github.com/geberit/Revit.TestRunner" target="_blank" rel="noopener"&gt;https://github.com/geberit/Revit.TestRunner&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Features so far:&lt;/P&gt;&lt;P&gt;* Using NUnit 3&lt;/P&gt;&lt;P&gt;* No reference to Revit.TestRunner needed in test assembly&lt;/P&gt;&lt;P&gt;* Support of NUnit attributes SetUp and TearDown&lt;/P&gt;&lt;P&gt;* Injection of API objects in test method&lt;/P&gt;&lt;P&gt;* Works as an addin with GUI&lt;/P&gt;&lt;P&gt;* Installation script for libraries&lt;/P&gt;&lt;P&gt;* Post build event in VS project to place addin file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feedback welcome&lt;/P&gt;&lt;P&gt;Tobias - Geberit Verwaltungs AG&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 10:57:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9070621#M39393</guid>
      <dc:creator>tobias.floescher</dc:creator>
      <dc:date>2019-10-07T10:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Revit.TestRunner - Run UnitTests in Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072394#M39394</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice work!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've experimented with&amp;nbsp;RevitTestFramework back in the days and found it interesting when I tested it. It used revit journals to start revit automatically and run the test but it often crashed for some reason. I would be great to get this to work in a CI-workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you investigated the possibility to get this automated with Forge (&lt;A href="https://forge.autodesk.com/blog/design-automation-revit-public-beta-here" target="_blank"&gt;https://forge.autodesk.com/blog/design-automation-revit-public-beta-here&lt;/A&gt;)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 06:18:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072394#M39394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-08T06:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Revit.TestRunner - Run UnitTests in Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072453#M39395</link>
      <description>&lt;P&gt;Dear Tobias,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your appreciation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At first glance, this looks utterly beautiful!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will give it a go asap!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you ever so much for sharing this!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will very gladly share it on the blog as well, if I may.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 07:08:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072453#M39395</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-10-08T07:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Revit.TestRunner - Run UnitTests in Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072483#M39396</link>
      <description>&lt;P&gt;Hi Josy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! No I haven’t investigated with Forge at this time. But I think it could be a very cool solution, especially our build servers are build agents in azure where we don’t have any access to install something (ex. Revit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tobias&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 07:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072483#M39396</guid>
      <dc:creator>tobias.floescher</dc:creator>
      <dc:date>2019-10-08T07:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Revit.TestRunner - Run UnitTests in Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072491#M39397</link>
      <description>&lt;P&gt;Hi Jeremy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be great if you share it on your blog!&lt;/P&gt;&lt;P&gt;I feel honored, thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers tobias&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 07:34:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072491#M39397</guid>
      <dc:creator>tobias.floescher</dc:creator>
      <dc:date>2019-10-08T07:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Revit.TestRunner - Run UnitTests in Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072648#M39398</link>
      <description>&lt;P&gt;Cool!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you like it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2019/10/testrunner-run-unit-tests-in-revit.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2019/10/testrunner-run-unit-tests-in-revit.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 09:09:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072648#M39398</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-10-08T09:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Revit.TestRunner - Run UnitTests in Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072845#M39399</link>
      <description>&lt;P&gt;thank you very much, Jeremy.&lt;BR /&gt;(also to correct my terrible English ;))&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 10:47:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072845#M39399</guid>
      <dc:creator>tobias.floescher</dc:creator>
      <dc:date>2019-10-08T10:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Revit.TestRunner - Run UnitTests in Revit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072887#M39400</link>
      <description>&lt;P&gt;All thanks to you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You English is perfectly fine, very minor corrections only!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 11:10:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-testrunner-run-unittests-in-revit/m-p/9072887#M39400</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-10-08T11:10:42Z</dc:date>
    </item>
  </channel>
</rss>

