<?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: How do you unit test your DI jobs? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/502301#M15597</link>
    <description>&lt;P&gt;I normally treat a job as the unit so that's what I would be testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the developer I'd run the job step by step out of DIS and ensure every single node returns what I'm expecting. That's informal testing during development. For unit testing I'd execute the job multiple times testing for example situations like: source table with no rows, re-running job with same data, source table doesn't exist, target table doesn't exist, ....and so on. This can be out of DIS or via batch.&lt;/P&gt;
&lt;P&gt;I'd sure have at least one run in batch as this is how things need to work in the end.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Oct 2018 02:34:10 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2018-10-08T02:34:10Z</dc:date>
    <item>
      <title>How do you unit test your DI jobs?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/499076#M15533</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have DI jobs that we create.&lt;/P&gt;&lt;P&gt;In one DI job we have lots of tasks done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you unit test your DI jobs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we write Macros, it is easy to have modules that we unit test. Different story with DI jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Henrik&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 13:33:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/499076#M15533</guid>
      <dc:creator>HeG</dc:creator>
      <dc:date>2018-09-26T13:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you unit test your DI jobs?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/501364#M15575</link>
      <description>&lt;P&gt;For our DI jobs we do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Test that it runs successful in DI.&lt;/P&gt;&lt;P&gt;2. If you are using a batch scheduler, test it within the scheduler. For flows, this will mean running the whole flow.&lt;/P&gt;&lt;P&gt;3. If that flow is part of a larger module, then we would deploy the flows into a test environment and do a full end to end test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the above is manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 07:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/501364#M15575</guid>
      <dc:creator>ClarkLawson</dc:creator>
      <dc:date>2018-10-04T07:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you unit test your DI jobs?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/501369#M15576</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1 is maybe some sort of Unit Test. The question is what is the smallest "unit" I can test.&amp;nbsp;For functional approaches we&amp;nbsp;might consider a single function as a unit. But this is not to simple to test with DI jobs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step2 and Step3 are more for &lt;SPAN&gt;Integration testing&amp;nbsp;&lt;/SPAN&gt;me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Integration testing consists of executing &lt;STRONG&gt;groups of units &lt;/STRONG&gt;in order to test their interaction and to see if they behave as predicted by the Design Specification. &lt;STRONG&gt;Units should only be integration tested once they have successfully been unit tested&lt;/STRONG&gt;. Integration tests can be planned in a layered fashion so that they test increasingly large groups of units until the full system is constructed and tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 08:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/501369#M15576</guid>
      <dc:creator>HeG</dc:creator>
      <dc:date>2018-10-04T08:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you unit test your DI jobs?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/501397#M15578</link>
      <description>&lt;P&gt;For 1, we run the full DI job rather than partially. Mainly because apart from our source(s) and target tables being registered, the interim datasets are work tables and so would need the DI job to be run fully to create them.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 09:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/501397#M15578</guid>
      <dc:creator>ClarkLawson</dc:creator>
      <dc:date>2018-10-04T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you unit test your DI jobs?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/502301#M15597</link>
      <description>&lt;P&gt;I normally treat a job as the unit so that's what I would be testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the developer I'd run the job step by step out of DIS and ensure every single node returns what I'm expecting. That's informal testing during development. For unit testing I'd execute the job multiple times testing for example situations like: source table with no rows, re-running job with same data, source table doesn't exist, target table doesn't exist, ....and so on. This can be out of DIS or via batch.&lt;/P&gt;
&lt;P&gt;I'd sure have at least one run in batch as this is how things need to work in the end.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 02:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-do-you-unit-test-your-DI-jobs/m-p/502301#M15597</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-10-08T02:34:10Z</dc:date>
    </item>
  </channel>
</rss>

