<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Using parameterized tests with unity</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109033/using-parameterized-tests-with-unity</link><description>Hi, 
 To make it easier to write, maintain and check unittests, I would like to use the parameterized testing feature of unity (see unity documentation on github ). By default parameterized testing is disabled and to use it, it needs to be enabled by</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Apr 2024 10:38:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109033/using-parameterized-tests-with-unity" /><item><title>RE: Using parameterized tests with unity</title><link>https://devzone.nordicsemi.com/thread/477060?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 10:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b492e32-501f-4da6-9fc8-fb286da7f1a6</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Heard back from our developers:&lt;/p&gt;
&lt;p&gt;&amp;quot;I wasn&amp;#39;t adding this template file to CMakeLists.txt but i see that it is fixed there. Probably it could be changed to come from Kconfig to allow user overwriting it. I made a draft &lt;a title="https://github.com/nrfconnect/sdk-nrf/pull/14720" href="https://github.com/nrfconnect/sdk-nrf/pull/14720" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/pull/14720&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;And&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;it&amp;#39;s not directly supported, meaning we have not created an interface for this usecase, however CMake supports overriding of functions, which in this case could be achieved the following way:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a user defined Zephyr module (could be users own manifest repo) and have this module depending upon &lt;code&gt;nrf&lt;/code&gt;module.&lt;/li&gt;
&lt;li&gt;Override &lt;code&gt;configure_unity_conf_file()&lt;/code&gt;in the user defined Zephyr module, so that the user&amp;#39;s own macro is used instead of NCS default.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using parameterized tests with unity</title><link>https://devzone.nordicsemi.com/thread/473655?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 13:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b258db11-9f55-42fc-919d-5c7fbecb89f3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I have asked our developers if they know this.&lt;/p&gt;
&lt;p&gt;In the meantime, maybe &lt;a href="https://github.com/antmicro/zephyr-cmock-unity-module"&gt;https://github.com/antmicro/zephyr-cmock-unity-module&lt;/a&gt; has something that may help you?&lt;/p&gt;
&lt;p&gt;Also, if you want to try multiple places at once, you could always try to ask over at &lt;a href="https://groups.google.com/g/throwtheswitch"&gt;https://groups.google.com/g/throwtheswitch&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using parameterized tests with unity</title><link>https://devzone.nordicsemi.com/thread/473654?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 13:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6dee11a-6701-4105-881e-d5e0d4b41175</guid><dc:creator>Rhyaldir</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;If it cannot be override it might be nice to add the `use_param_tests` element by default in the new release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using parameterized tests with unity</title><link>https://devzone.nordicsemi.com/thread/473266?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 15:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd40dcc8-eaf7-4edc-affb-62657769c3c9</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I have not been able to find anything on this yet, but I am working on it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using parameterized tests with unity</title><link>https://devzone.nordicsemi.com/thread/472981?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2024 14:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be7c8a4-09f9-413a-8ae9-9e1116f070c4</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will look into this and return with more information on Monday.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>